Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 180) sorted by relevance

12345678

/include/media/
A Dv4l2-ioctl.h406 int (*vidioc_reqbufs)(struct file *file, void *fh,
410 int (*vidioc_qbuf)(struct file *file, void *fh,
412 int (*vidioc_expbuf)(struct file *file, void *fh,
414 int (*vidioc_dqbuf)(struct file *file, void *fh,
425 int (*vidioc_g_fbuf)(struct file *file, void *fh,
427 int (*vidioc_s_fbuf)(struct file *file, void *fh,
512 int (*vidioc_g_parm)(struct file *file, void *fh,
514 int (*vidioc_s_parm)(struct file *file, void *fh,
567 int (*vidioc_g_edid)(struct file *file, void *fh,
569 int (*vidioc_s_edid)(struct file *file, void *fh,
[all …]
A Dvideobuf2-v4l2.h324 int vb2_ioctl_reqbufs(struct file *file, void *priv,
326 int vb2_ioctl_create_bufs(struct file *file, void *priv,
328 int vb2_ioctl_prepare_buf(struct file *file, void *priv,
335 int vb2_ioctl_expbuf(struct file *file, void *priv,
337 int vb2_ioctl_remove_bufs(struct file *file, void *priv,
342 int vb2_fop_mmap(struct file *file, struct vm_area_struct *vma);
343 int vb2_fop_release(struct file *file);
344 int _vb2_fop_release(struct file *file, struct mutex *lock);
345 ssize_t vb2_fop_write(struct file *file, const char __user *buf,
347 ssize_t vb2_fop_read(struct file *file, char __user *buf,
[all …]
A Dv4l2-mem2mem.h866 int v4l2_m2m_ioctl_reqbufs(struct file *file, void *priv,
868 int v4l2_m2m_ioctl_create_bufs(struct file *file, void *fh,
872 int v4l2_m2m_ioctl_querybuf(struct file *file, void *fh,
874 int v4l2_m2m_ioctl_expbuf(struct file *file, void *fh,
876 int v4l2_m2m_ioctl_qbuf(struct file *file, void *fh,
878 int v4l2_m2m_ioctl_dqbuf(struct file *file, void *fh,
880 int v4l2_m2m_ioctl_prepare_buf(struct file *file, void *fh,
882 int v4l2_m2m_ioctl_streamon(struct file *file, void *fh,
884 int v4l2_m2m_ioctl_streamoff(struct file *file, void *fh,
886 int v4l2_m2m_ioctl_encoder_cmd(struct file *file, void *fh,
[all …]
A Dmedia-devnode.h49 ssize_t (*read) (struct file *, char __user *, size_t, loff_t *);
50 ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *);
51 __poll_t (*poll) (struct file *, struct poll_table_struct *);
52 long (*ioctl) (struct file *, unsigned int, unsigned long);
53 long (*compat_ioctl) (struct file *, unsigned int, unsigned long);
54 int (*open) (struct file *);
55 int (*release) (struct file *);
147 static inline struct media_devnode *media_devnode_data(struct file *filp) in media_devnode_data()
A Dv4l2-dev.h203 ssize_t (*read) (struct file *, char __user *, size_t, loff_t *);
205 __poll_t (*poll) (struct file *, struct poll_table_struct *);
206 long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long);
208 long (*compat_ioctl32) (struct file *, unsigned int, unsigned long);
210 unsigned long (*get_unmapped_area) (struct file *, unsigned long,
212 int (*mmap) (struct file *, struct vm_area_struct *);
213 int (*open) (struct file *);
214 int (*release) (struct file *);
510 struct video_device *video_devdata(struct file *file);
521 static inline void *video_drvdata(struct file *file) in video_drvdata() argument
[all …]
A Ddvbdev.h179 int (*kernel_ioctl)(struct file *file, unsigned int cmd, void *arg);
344 int dvb_generic_open(struct inode *inode, struct file *file);
355 int dvb_generic_release(struct inode *inode, struct file *file);
367 long dvb_generic_ioctl(struct file *file,
383 int dvb_usercopy(struct file *file, unsigned int cmd, unsigned long arg,
384 int (*func)(struct file *file, unsigned int cmd, void *arg));
/include/linux/
A Dfile.h16 struct file;
18 extern void fput(struct file *);
30 extern struct file *alloc_file_clone(struct file *, int flags,
66 extern struct file *fget(unsigned int fd);
70 extern void __f_unlock_pos(struct file *);
87 extern int f_dupfd(unsigned int from, struct file *file, unsigned flags);
88 extern int replace_fd(unsigned fd, struct file *file, unsigned flags);
119 extern void fd_install(unsigned int fd, struct file *file);
121 int receive_fd(struct file *file, int __user *ufd, unsigned int o_flags);
123 int receive_fd_replace(int new_fd, struct file *file, unsigned int o_flags);
[all …]
A Deventpoll.h16 struct file;
22 struct file *get_epoll_tfile_raw_ptr(struct file *file, int tfd, unsigned long toff);
26 void eventpoll_release_file(struct file *file);
29 int epoll_sendevents(struct file *file, struct epoll_event __user *events,
38 static inline void eventpoll_release(struct file *file) in eventpoll_release() argument
49 if (likely(!READ_ONCE(file->f_ep))) in eventpoll_release()
57 eventpoll_release_file(file); in eventpoll_release()
71 static inline void eventpoll_release(struct file *file) {} in eventpoll_release() argument
A Dmemfd.h8 extern long memfd_fcntl(struct file *file, unsigned int cmd, unsigned int arg);
9 struct folio *memfd_alloc_folio(struct file *memfd, pgoff_t idx);
17 int memfd_check_seals_mmap(struct file *file, vm_flags_t *vm_flags_ptr);
19 static inline long memfd_fcntl(struct file *f, unsigned int c, unsigned int a) in memfd_fcntl()
23 static inline struct folio *memfd_alloc_folio(struct file *memfd, pgoff_t idx) in memfd_alloc_folio()
27 static inline int memfd_check_seals_mmap(struct file *file, in memfd_check_seals_mmap() argument
A Dbacking-file.h17 void (*accessed)(struct file *file);
21 struct file *backing_file_open(const struct path *user_path, int flags,
24 struct file *backing_tmpfile_open(const struct path *user_path, int flags,
27 ssize_t backing_file_read_iter(struct file *file, struct iov_iter *iter,
30 ssize_t backing_file_write_iter(struct file *file, struct iov_iter *iter,
33 ssize_t backing_file_splice_read(struct file *in, struct kiocb *iocb,
38 struct file *out, struct kiocb *iocb,
41 int backing_file_mmap(struct file *file, struct vm_area_struct *vma,
A Ddlm_plock.h10 int dlm_posix_lock(dlm_lockspace_t *lockspace, u64 number, struct file *file,
12 int dlm_posix_unlock(dlm_lockspace_t *lockspace, u64 number, struct file *file,
14 int dlm_posix_cancel(dlm_lockspace_t *lockspace, u64 number, struct file *file,
16 int dlm_posix_get(dlm_lockspace_t *lockspace, u64 number, struct file *file,
A Dsplice.h38 struct file *file; /* file to read/write */ member
71 ssize_t splice_from_pipe(struct pipe_inode_info *pipe, struct file *out,
79 ssize_t vfs_splice_read(struct file *in, loff_t *ppos,
82 ssize_t splice_direct_to_actor(struct file *file, struct splice_desc *sd,
84 ssize_t do_splice(struct file *in, loff_t *off_in, struct file *out,
86 ssize_t do_splice_direct(struct file *in, loff_t *ppos, struct file *out,
88 ssize_t splice_file_range(struct file *in, loff_t *ppos, struct file *out,
91 static inline long splice_copy_file_range(struct file *in, loff_t pos_in, in splice_copy_file_range()
92 struct file *out, loff_t pos_out, in splice_copy_file_range()
98 ssize_t do_tee(struct file *in, struct file *out, size_t len,
[all …]
A Dfsnotify.h116 static inline int fsnotify_file(struct file *file, __u32 mask) in fsnotify_file() argument
132 int fsnotify_open_perm_and_set_mode(struct file *file);
174 static inline int fsnotify_mmap_perm(struct file *file, int prot, in fsnotify_mmap_perm() argument
180 if (!file || likely(!FMODE_FSNOTIFY_HSM(file->f_mode))) in fsnotify_mmap_perm()
204 static inline int fsnotify_file_perm(struct file *file, int perm_mask) in fsnotify_file_perm() argument
210 static inline int fsnotify_open_perm_and_set_mode(struct file *file) in fsnotify_open_perm_and_set_mode() argument
221 static inline int fsnotify_mmap_perm(struct file *file, int prot, in fsnotify_mmap_perm() argument
423 static inline void fsnotify_access(struct file *file) in fsnotify_access() argument
431 static inline void fsnotify_modify(struct file *file) in fsnotify_modify() argument
439 static inline void fsnotify_open(struct file *file) in fsnotify_open() argument
[all …]
A Dfs.h477 void (*swap_deactivate)(struct file *file);
1151 struct file *get_file_rcu(struct file __rcu **f);
1152 struct file *get_file_active(struct file **f);
1178 int file_f_owner_allocate(struct file *file);
1232 extern int send_sigurg(struct file *file);
2180 void (*splice_eof)(struct file *file);
2289 return file->f_op->mmap(file, vma); in vfs_mmap()
2666 extern int file_modified(struct file *file);
2908 static inline struct file *file_clone_open(struct file *file) in file_clone_open() argument
2910 return dentry_open(&file->f_path, file->f_flags, file->f_cred); in file_clone_open()
[all …]
A Dfilelock.h109 struct file *flc_file;
161 int fcntl_getlease(struct file *filp);
200 void locks_remove_posix(struct file *, fl_owner_t);
201 void locks_remove_file(struct file *);
206 int vfs_test_lock(struct file *, struct file_lock *);
228 struct file *filp, struct files_struct *files);
239 static inline int fcntl_getlk(struct file *file, unsigned int cmd, in fcntl_getlk() argument
245 static inline int fcntl_setlk(unsigned int fd, struct file *file, in fcntl_setlk() argument
252 static inline int fcntl_getlk64(struct file *file, unsigned int cmd, in fcntl_getlk64() argument
258 static inline int fcntl_setlk64(unsigned int fd, struct file *file, in fcntl_setlk64() argument
[all …]
A Dif_tun.h23 struct socket *tun_get_socket(struct file *);
24 struct ptr_ring *tun_get_tx_ring(struct file *file);
45 struct file;
48 static inline struct socket *tun_get_socket(struct file *f) in tun_get_socket()
53 static inline struct ptr_ring *tun_get_tx_ring(struct file *f) in tun_get_tx_ring()
A Dif_tap.h8 struct file;
12 struct socket *tap_get_socket(struct file *);
13 struct ptr_ring *tap_get_ptr_ring(struct file *file);
17 static inline struct socket *tap_get_socket(struct file *f) in tap_get_socket()
21 static inline struct ptr_ring *tap_get_ptr_ring(struct file *f) in tap_get_ptr_ring()
68 struct file *file; member
A Dseq_file.h27 const struct file *file; member
111 loff_t seq_lseek(struct file *, loff_t, int);
112 int seq_release(struct inode *, struct file *);
178 int single_release(struct inode *, struct file *);
189 static int __name ## _open(struct inode *inode, struct file *file) \
191 int ret = seq_open(file, &__name ## _sops); \
193 struct seq_file *seq_f = file->private_data; \
208 static int __name ## _open(struct inode *inode, struct file *file) \
222 static int __name ## _open(struct inode *inode, struct file *file) \
237 static int __name ## _open(struct inode *inode, struct file *file) \
[all …]
A Ddnotify.h16 struct file * dn_filp;
32 extern void dnotify_flush(struct file *, fl_owner_t);
33 extern int fcntl_dirnotify(int, struct file *, unsigned int);
37 static inline void dnotify_flush(struct file *filp, fl_owner_t id) in dnotify_flush()
41 static inline int fcntl_dirnotify(int fd, struct file *filp, unsigned int arg) in fcntl_dirnotify()
A Ddebugfs.h49 static int __fops ## _open(struct inode *inode, struct file *file) \
165 void *debugfs_get_aux(const struct file *file);
170 ssize_t debugfs_attr_read(struct file *file, char __user *buf,
249 debugfs_enter_cancellation(struct file *file,
252 debugfs_leave_cancellation(struct file *file,
331 void *debugfs_get_aux(const struct file *file);
347 static inline ssize_t debugfs_attr_write(struct file *file, in debugfs_attr_write() argument
354 static inline ssize_t debugfs_attr_write_signed(struct file *file, in debugfs_attr_write_signed() argument
449 static inline ssize_t debugfs_read_file_bool(struct file *file, in debugfs_read_file_bool() argument
456 static inline ssize_t debugfs_write_file_bool(struct file *file, in debugfs_write_file_bool() argument
[all …]
A Dfileattr.h78 int ioctl_getflags(struct file *file, unsigned int __user *argp);
79 int ioctl_setflags(struct file *file, unsigned int __user *argp);
80 int ioctl_fsgetxattr(struct file *file, void __user *argp);
81 int ioctl_fssetxattr(struct file *file, void __user *argp);
A Dfdtable.h28 struct file __rcu **fd; /* current fd array */
56 struct file __rcu * fd_array[NR_OPEN_DEFAULT];
72 static inline struct file *files_lookup_fd_raw(struct files_struct *files, unsigned int fd) in files_lookup_fd_raw()
76 struct file *needs_masking; in files_lookup_fd_raw()
85 return (struct file *)(mask & (unsigned long)needs_masking); in files_lookup_fd_raw()
88 static inline struct file *files_lookup_fd_locked(struct files_struct *files, unsigned int fd) in files_lookup_fd_locked()
110 int (*)(const void *, struct file *, unsigned),
114 extern struct file *file_close_fd(unsigned int fd);
A Dfsverity.h45 int (*begin_enable_verity)(struct file *filp);
67 int (*end_enable_verity)(struct file *filp, const void *desc,
140 int fsverity_ioctl_enable(struct file *filp, const void __user *arg);
144 int fsverity_ioctl_measure(struct file *filp, void __user *arg);
151 int __fsverity_file_open(struct inode *inode, struct file *filp);
169 int fsverity_ioctl_read_metadata(struct file *filp, const void __user *uarg);
186 static inline int fsverity_ioctl_enable(struct file *filp, in fsverity_ioctl_enable()
194 static inline int fsverity_ioctl_measure(struct file *filp, void __user *arg) in fsverity_ioctl_measure()
212 static inline int __fsverity_file_open(struct inode *inode, struct file *filp) in __fsverity_file_open()
229 static inline int fsverity_ioctl_read_metadata(struct file *filp, in fsverity_ioctl_read_metadata()
[all …]
/include/sound/
A Dhwdep.h17 long long (*llseek)(struct snd_hwdep *hw, struct file *file,
23 int (*open)(struct snd_hwdep *hw, struct file * file);
24 int (*release)(struct snd_hwdep *hw, struct file * file);
25 __poll_t (*poll)(struct snd_hwdep *hw, struct file *file,
27 int (*ioctl)(struct snd_hwdep *hw, struct file *file,
29 int (*ioctl_compat)(struct snd_hwdep *hw, struct file *file,
31 int (*mmap)(struct snd_hwdep *hw, struct file *file,
/include/drm/ttm/
A Dttm_backup.h56 void ttm_backup_drop(struct file *backup, pgoff_t handle);
58 int ttm_backup_copy_page(struct file *backup, struct page *dst,
62 ttm_backup_backup_page(struct file *backup, struct page *page,
66 void ttm_backup_fini(struct file *backup);
70 struct file *ttm_backup_shmem_create(loff_t size);

Completed in 60 milliseconds

12345678