Advertisement
Guest User

struct_file_operations

a guest
Jun 16th, 2013
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.73 KB | None | 0 0
  1. struct file_operations {
  2.     struct module *owner;
  3.     loff_t (*llseek) (struct file *, loff_t, int);
  4.     ssize_t (*read) (struct file *, char __user *, size_t, loff_t *);
  5.     ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *);
  6.     ssize_t (*aio_read) (struct kiocb *, const struct iovec *, unsigned long, loff_t);
  7.     ssize_t (*aio_write) (struct kiocb *, const struct iovec *, unsigned long, loff_t);
  8.     int (*readdir) (struct file *, void *, filldir_t);
  9.     unsigned int (*poll) (struct file *, struct poll_table_struct *);
  10.     long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long);
  11.     long (*compat_ioctl) (struct file *, unsigned int, unsigned long);
  12.     int (*mmap) (struct file *, struct vm_area_struct *);
  13.     int (*open) (struct inode *, struct file *);
  14.     int (*flush) (struct file *, fl_owner_t id);
  15.     int (*release) (struct inode *, struct file *);
  16.     int (*fsync) (struct file *, loff_t, loff_t, int datasync);
  17.     int (*aio_fsync) (struct kiocb *, int datasync);
  18.     int (*fasync) (int, struct file *, int);
  19.     int (*lock) (struct file *, int, struct file_lock *);
  20.     ssize_t (*sendpage) (struct file *, struct page *, int, size_t, loff_t *, int);
  21.     unsigned long (*get_unmapped_area)(struct file *, unsigned long, unsigned long, unsigned long, unsigned long);
  22.     int (*check_flags)(int);
  23.     int (*flock) (struct file *, int, struct file_lock *);
  24.     ssize_t (*splice_write)(struct pipe_inode_info *, struct file *, loff_t *, size_t, unsigned int);
  25.     ssize_t (*splice_read)(struct file *, loff_t *, struct pipe_inode_info *, size_t, unsigned int);
  26.     int (*setlease)(struct file *, long, struct file_lock **);
  27.     long (*fallocate)(struct file *file, int mode, loff_t offset,
  28.               loff_t len);
  29.     int (*show_fdinfo)(struct seq_file *m, struct file *f);
  30. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement