1 struct inode; 2 struct file; 3 struct dentry; 4 5 struct file_operations { 6 ssize_t (*read) (struct file *, char *, size_t, loff_t *); 7 int (*open) (struct inode *, struct file *); 8 int (*release) (struct inode *, struct file *); 9 ssize_t (*write) (struct file *, const char *, size_t, loff_t *); 10 }; 11