First bad bad pass.
[cascardo/kernel/notes/.git] / 04.char / 1.vfs / text
1 #include <linux/fs.h>
2
3 LDD3 chapter 3
4
5 struct file_operations
6         owner = THIS_MODULE
7         read
8         write
9         ioctl vs unlocked_ioctl vs compat_ioctl
10
11         unlocked_ioctl does not grab the kernel lock
12         unlocked_ioctl and compat_ioctl does not receive the inode structure
13         compat_ioctl (32bit vs 64bit)
14
15         open
16         release
17         flush
18         mmap
19         poll
20         llseek
21
22 struct file
23         f_op
24         f_flags
25         f_pos
26         private_data
27
28 we will not mess with inode
29 struct inode
30
31 iminor
32 imajor