Lines Matching defs:file_operations

1754 struct file_operations {  struct
1755 struct module *owner;
1756 loff_t (*llseek) (struct file *, loff_t, int);
1757 ssize_t (*read) (struct file *, char __user *, size_t, loff_t *);
1758 ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *);
1759 ssize_t (*read_iter) (struct kiocb *, struct iov_iter *);
1760 ssize_t (*write_iter) (struct kiocb *, struct iov_iter *);
1761 int (*iopoll)(struct kiocb *kiocb, struct io_comp_batch *,
1763 int (*iterate) (struct file *, struct dir_context *);
1764 int (*iterate_shared) (struct file *, struct dir_context *);
1765 __poll_t (*poll) (struct file *, struct poll_table_struct *);
1766 long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long);
1767 long (*compat_ioctl) (struct file *, unsigned int, unsigned long);
1768 int (*mmap) (struct file *, struct vm_area_struct *);
1769 unsigned long mmap_supported_flags;
1770 int (*open) (struct inode *, struct file *);
1771 int (*flush) (struct file *, fl_owner_t id);
1772 int (*release) (struct inode *, struct file *);
1773 int (*fsync) (struct file *, loff_t, loff_t, int datasync);
1774 int (*fasync) (int, struct file *, int);
1775 int (*lock) (struct file *, int, struct file_lock *);
1776 ssize_t (*sendpage) (struct file *, struct page *, int, size_t, loff_t *, int);
1777 …ng (*get_unmapped_area)(struct file *, unsigned long, unsigned long, unsigned long, unsigned long);
1778 int (*check_flags)(int);
1779 int (*flock) (struct file *, int, struct file_lock *);
1780 ssize_t (*splice_write)(struct pipe_inode_info *, struct file *, loff_t *, size_t, unsigned int);
1781 ssize_t (*splice_read)(struct file *, loff_t *, struct pipe_inode_info *, size_t, unsigned int);
1782 int (*setlease)(struct file *, long, struct file_lock **, void **);
1783 long (*fallocate)(struct file *file, int mode, loff_t offset,
1785 void (*show_fdinfo)(struct seq_file *m, struct file *f);
1787 unsigned (*mmap_capabilities)(struct file *);
1789 ssize_t (*copy_file_range)(struct file *, loff_t, struct file *,
1791 loff_t (*remap_file_range)(struct file *file_in, loff_t pos_in,
1794 int (*fadvise)(struct file *, loff_t, loff_t, int);
1795 int (*uring_cmd)(struct io_uring_cmd *ioucmd, unsigned int issue_flags);
1796 int (*uring_cmd_iopoll)(struct io_uring_cmd *, struct io_comp_batch *,