views:

37

answers:

2

Hi Kernel Gurus,

i'm writing a char device in linux - xubuntu , and i'm wondering if i have to implement ioctl OR maybe i can use the regular read write funcs??

thanks all, Amit

+3  A: 

The primary interface for a character device is the file functions, with ioctl serving extra, optional functionality.

Ignacio Vazquez-Abrams
+1  A: 

If you're new to kernel module programming, you might want to check out the Linux Kernel Module Programming Guide.

mjschultz