When writing a driver for a character device,
static struct file_operations will be used.
Well,,,what's the definition of file_operation in Linux?
could anyone explain it in details?
Or how to find out its definition in Linux source directory?
file_operation structure is data type which contains the fuction pointers as the members. The function pointers correspods to the various operations supported by the device driver you are writing.
It consists of Various operations like read,Write,IOCTL,lseek,
you can get the definition in /usr/src/linux/include