what's the definition of file_operation in Linux?

Status
Not open for further replies.

ubuntu_amateur

Member level 4
Joined
Sep 24, 2006
Messages
71
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,665
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
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…