Home
last modified time | relevance | path

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

12345678910>>...162

/linux/include/media/
H A Dv4l2-ioctl.h296 int (*vidioc_querycap)(struct file *file, void *fh,
300 int (*vidioc_enum_fmt_vid_cap)(struct file *file, void *fh,
302 int (*vidioc_enum_fmt_vid_overlay)(struct file *file, void *fh,
304 int (*vidioc_enum_fmt_vid_out)(struct file *file, void *fh,
306 int (*vidioc_enum_fmt_sdr_cap)(struct file *file, voi
[all...]
H A Dvideobuf2-v4l2.h149 * vb2_expbuf() - Export a buffer as a file descriptor
166 * would be passing (&file->f_flags & %O_NONBLOCK) here
277 * @file: file argument passed to the poll file operation handler
278 * @wait: wait argument passed to the poll file operation handler
280 * This function implements poll file operation handler for a driver.
282 * be informed that the file descriptor of a video device is available for
284 * For OUTPUT queues, if a buffer is ready to be dequeued, the file descriptor
293 __poll_t vb2_poll(struct vb2_queue *q, struct file *fil
317 vb2_queue_is_busy(struct vb2_queue * q,struct file * file) vb2_queue_is_busy() argument
[all...]
/linux/drivers/media/test-drivers/vivid/
H A Dvivid-vid-cap.h22 int vivid_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
23 int vivid_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
24 int vivid_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
25 int vidioc_g_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f);
26 int vidioc_try_fmt_vid_cap_mplane(struct file *file, voi
[all...]
H A Dvivid-vid-out.h15 int vivid_g_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
16 int vivid_try_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
17 int vivid_s_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
18 int vidioc_g_fmt_vid_out_mplane(struct file *file, void *priv, struct v4l2_format *f);
19 int vidioc_try_fmt_vid_out_mplane(struct file *file, voi
[all...]
H A Dvivid-sdr-cap.h11 int vivid_sdr_enum_freq_bands(struct file *file, void *fh, struct v4l2_frequency_band *band);
12 int vivid_sdr_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf);
13 int vivid_sdr_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf);
14 int vivid_sdr_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt);
15 int vivid_sdr_s_tuner(struct file *file, voi
[all...]
/linux/fs/
H A Dfile_table.c11 #include <linux/file.h>
40 /* SLAB cache for file structures */
46 /* Container for backing file with optional user path */
48 struct file file; member
55 #define backing_file(f) container_of(f, struct backing_file, file)
57 struct path *backing_file_user_path(const struct file *f) in backing_file_user_path()
63 void backing_file_set_user_path(struct file *f, const struct path *path) in backing_file_set_user_path()
69 static inline void file_free(struct file *f) in file_free()
114 .procname = "file
319 file_init_path(struct file * file,const struct path * path,const struct file_operations * fop) file_init_path() argument
352 struct file *file; alloc_file() local
377 struct file *file; alloc_file_pseudo() local
405 struct file *file; alloc_file_pseudo_noaccount() local
442 __fput(struct file * file) __fput() argument
518 __fput_deferred(struct file * file) __fput_deferred() argument
542 fput(struct file * file) fput() argument
557 __fput_sync(struct file * file) __fput_sync() argument
570 fput_close_sync(struct file * file) fput_close_sync() argument
582 fput_close(struct file * file) fput_close() argument
[all...]
H A Dfile.c3 * linux/fs/file.c
17 #include <linux/file.h>
36 if (WARN_ONCE(cnt >= FILE_REF_RELEASED, "imbalanced put on file reference count")) { in __file_ref_put_badval()
121 * space if any. This does not copy the file pointers. Called with the files
138 * Copy all file descriptors from the old table to the new, expanded table and
147 cpy = ofdt->max_fds * sizeof(struct file *); in copy_fdtable()
148 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable()
206 * a process tries to use a file descriptor near that limit. For example, in alloc_fdtable()
208 * systemd typically sets it to - then trying to use a file descriptor in alloc_fdtable()
209 * close to that value will require allocating a file descripto in alloc_fdtable()
492 struct file *file = fdt->fd[i]; close_files() local
652 fd_install(unsigned int fd,struct file * file) fd_install() argument
695 struct file *file; file_close_fd_locked() local
714 struct file *file; close_fd() local
756 struct file *file; __range_close() local
853 struct file *file; file_close_fd() local
880 struct file *file; do_close_on_exec() local
900 struct file __rcu *file; __get_file_rcu() local
955 struct file __rcu *file; get_file_rcu() local
978 struct file __rcu *file; get_file_active() local
993 struct file *file; __fget_files_rcu() local
1068 struct file *file; __fget_files() local
1096 struct file *file = NULL; fget_task() local
1111 struct file *file = NULL; fget_task_next() local
1156 struct file *file; __fget_light() local
1200 file_needs_f_pos_lock(struct file * file) file_needs_f_pos_lock() argument
1211 file_seek_cur_needs_f_lock(struct file * file) file_seek_cur_needs_f_lock() argument
1228 struct file *file = fd_file(f); fdget_pos() local
1266 do_dup2(struct files_struct * files,struct file * file,unsigned fd,unsigned flags) do_dup2() argument
1318 replace_fd(unsigned fd,struct file * file,unsigned flags) replace_fd() argument
1355 receive_fd(struct file * file,int __user * ufd,unsigned int o_flags) receive_fd() argument
1382 receive_fd_replace(int new_fd,struct file * file,unsigned int o_flags) receive_fd_replace() argument
1399 struct file *file; ksys_dup3() local
1457 struct file *file = fget_raw(fildes); SYSCALL_DEFINE1() local
1469 f_dupfd(unsigned int from,struct file * file,unsigned flags) f_dupfd() argument
1484 iterate_fd(struct files_struct * files,unsigned n,int (* f)(const void *,struct file *,unsigned),const void * p) iterate_fd() argument
1493 struct file *file; iterate_fd() local
[all...]
H A Dread_write.c12 #include <linux/file.h>
37 static inline bool unsigned_offsets(struct file *file) in unsigned_offsets() argument
39 return file->f_op->fop_flags & FOP_UNSIGNED_OFFSET; in unsigned_offsets()
43 * vfs_setpos_cookie - update the file offset for lseek and reset cookie
44 * @file: file structure in question
45 * @offset: file offset to seek to
46 * @maxsize: maximum file size
49 * Update the file offse
55 vfs_setpos_cookie(struct file * file,loff_t offset,loff_t maxsize,u64 * cookie) vfs_setpos_cookie() argument
83 vfs_setpos(struct file * file,loff_t offset,loff_t maxsize) vfs_setpos() argument
102 must_set_pos(struct file * file,loff_t * offset,int whence,loff_t eof) must_set_pos() argument
159 generic_file_llseek_size(struct file * file,loff_t offset,int whence,loff_t maxsize,loff_t eof) generic_file_llseek_size() argument
201 generic_llseek_cookie(struct file * file,loff_t offset,int whence,u64 * cookie) generic_llseek_cookie() argument
244 generic_file_llseek(struct file * file,loff_t offset,int whence) generic_file_llseek() argument
262 fixed_size_llseek(struct file * file,loff_t offset,int whence,loff_t size) fixed_size_llseek() argument
281 no_seek_end_llseek(struct file * file,loff_t offset,int whence) no_seek_end_llseek() argument
301 no_seek_end_llseek_size(struct file * file,loff_t offset,int whence,loff_t size) no_seek_end_llseek_size() argument
324 noop_llseek(struct file * file,loff_t offset,int whence) noop_llseek() argument
330 default_llseek(struct file * file,loff_t offset,int whence) default_llseek() argument
385 vfs_llseek(struct file * file,loff_t offset,int whence) vfs_llseek() argument
451 rw_verify_area(int read_write,struct file * file,const loff_t * ppos,size_t count) rw_verify_area() argument
498 warn_unsupported(struct file * file,const char * op) warn_unsupported() argument
506 __kernel_read(struct file * file,void * buf,size_t count,loff_t * pos) __kernel_read() argument
541 kernel_read(struct file * file,void * buf,size_t count,loff_t * pos) kernel_read() argument
552 vfs_read(struct file * file,char __user * buf,size_t count,loff_t * pos) vfs_read() argument
601 __kernel_write_iter(struct file * file,struct iov_iter * from,loff_t * pos) __kernel_write_iter() argument
631 __kernel_write(struct file * file,const void * buf,size_t count,loff_t * pos) __kernel_write() argument
650 kernel_write(struct file * file,const void * buf,size_t count,loff_t * pos) kernel_write() argument
666 vfs_write(struct file * file,const char __user * buf,size_t count,loff_t * pos) vfs_write() argument
699 file_ppos(struct file * file) file_ppos() argument
868 vfs_iocb_iter_read(struct file * file,struct kiocb * iocb,struct iov_iter * iter) vfs_iocb_iter_read() argument
896 vfs_iter_read(struct file * file,struct iov_iter * iter,loff_t * ppos,rwf_t flags) vfs_iter_read() argument
928 vfs_iocb_iter_write(struct file * file,struct kiocb * iocb,struct iov_iter * iter) vfs_iocb_iter_write() argument
959 vfs_iter_write(struct file * file,struct iov_iter * iter,loff_t * ppos,rwf_t flags) vfs_iter_write() argument
990 vfs_readv(struct file * file,const struct iovec __user * vec,unsigned long vlen,loff_t * pos,rwf_t flags) vfs_readv() argument
1028 vfs_writev(struct file * file,const struct iovec __user * vec,unsigned long vlen,loff_t * pos,rwf_t flags) vfs_writev() argument
1705 generic_write_check_limits(struct file * file,loff_t pos,loff_t * count) generic_write_check_limits() argument
1734 struct file *file = iocb->ki_filp; generic_write_checks_count() local
[all...]
/linux/tools/testing/selftests/efivarfs/
H A Defivarfs.sh56 local file=$efivarfs_mount/$FUNCNAME-$test_guid
58 printf "$attrs\x00" > $file
60 if [ ! -e $file ]; then
61 echo "$file couldn't be created" >&2
65 if [ $(stat -c %s $file) -ne 5 ]; then
66 echo "$file has invalid size" >&2
67 file_cleanup $file
70 file_cleanup $file
75 local file=$efivarfs_mount/$FUNCNAME-$test_guid
77 : > $file
[all...]
/linux/fs/lockd/
H A Dsvcsubs.c28 * Global file hash table
46 static inline void nlm_debug_print_file(char *msg, struct nlm_file *file) in nlm_debug_print_file() argument
48 struct inode *inode = nlmsvc_file_inode(file); in nlm_debug_print_file()
59 static inline void nlm_debug_print_file(char *msg, struct nlm_file *file) in nlm_debug_print_file() argument
80 * Open the file. Note that if we're reexporting, for example,
84 * the file.
87 struct nlm_file *file, int mode) in nlm_do_fopen() argument
89 struct file **fp = &file->f_file[mode]; in nlm_do_fopen()
94 nfserr = nlmsvc_ops->fopen(rqstp, &file in nlm_do_fopen()
108 struct nlm_file *file; nlm_lookup_file() local
164 nlm_delete_file(struct nlm_file * file) nlm_delete_file() argument
179 nlm_unlock_files(struct nlm_file * file,const struct file_lock * fl) nlm_unlock_files() argument
208 nlm_traverse_locks(struct nlm_host * host,struct nlm_file * file,nlm_host_match_fn_t match) nlm_traverse_locks() argument
252 nlm_inspect_file(struct nlm_host * host,struct nlm_file * file,nlm_host_match_fn_t match) nlm_inspect_file() argument
264 nlm_file_inuse(struct nlm_file * file) nlm_file_inuse() argument
287 nlm_close_files(struct nlm_file * file) nlm_close_files() argument
300 nlm_traverse_files(void * data,nlm_host_match_fn_t match,int (* is_failover_file)(void * data,struct nlm_file * file)) nlm_traverse_files() argument
303 struct nlm_file *file; nlm_traverse_files() local
344 nlm_release_file(struct nlm_file * file) nlm_release_file() argument
461 nlmsvc_match_sb(void * datap,struct nlm_file * file) nlmsvc_match_sb() argument
[all...]
/linux/fs/overlayfs/
H A Dfile.c7 #include <linux/file.h>
14 #include <linux/backing-file.h>
27 static struct file *ovl_open_realfile(const struct file *file, in ovl_open_realfile() argument
31 struct inode *inode = file_inode(file); in ovl_open_realfile()
33 struct file *realfile; in ovl_open_realfile()
35 int flags = file->f_flags | OVL_OPEN_FLAGS; in ovl_open_realfile()
51 realfile = backing_file_open(file_user_path(file), in ovl_open_realfile()
57 file, fil in ovl_open_realfile()
65 ovl_change_flags(struct file * file,unsigned int flags) ovl_change_flags() argument
122 ovl_real_file_path(const struct file * file,struct path * realpath) ovl_real_file_path() argument
174 ovl_real_file(const struct file * file) ovl_real_file() argument
198 ovl_open(struct inode * inode,struct file * file) ovl_open() argument
237 ovl_release(struct inode * inode,struct file * file) ovl_release() argument
243 ovl_llseek(struct file * file,loff_t offset,int whence) ovl_llseek() argument
286 ovl_file_modified(struct file * file) ovl_file_modified() argument
297 ovl_file_accessed(struct file * file) ovl_file_accessed() argument
327 struct file *file = iocb->ki_filp; ovl_read_iter() local
347 struct file *file = iocb->ki_filp; ovl_write_iter() local
449 ovl_fsync(struct file * file,loff_t start,loff_t end,int datasync) ovl_fsync() argument
479 ovl_mmap(struct file * file,struct vm_area_struct * vma) ovl_mmap() argument
490 ovl_fallocate(struct file * file,int mode,loff_t offset,loff_t len) ovl_fallocate() argument
522 ovl_fadvise(struct file * file,loff_t offset,loff_t len,int advice) ovl_fadvise() argument
637 ovl_flush(struct file * file,fl_owner_t id) ovl_flush() argument
[all...]
/linux/tools/testing/selftests/rcutorture/bin/
H A Dparse-console.sh5 # The "file" is a pathname on the local system, and "title" is
8 # Usage: parse-console.sh file title
15 file="$1"
22 # Check for presence and readability of console output file
23 if test -f "$file" -a -r "$file"
27 echo $title unreadable console output file: $file
30 if grep -Pq '\x00' < $file
34 cat /dev/null > $file
[all...]
/linux/fs/ecryptfs/
H A Dfile.c12 #include <linux/file.h>
29 * returns without any errors. This is to be used only for file reads.
37 struct file *file = iocb->ki_filp; in ecryptfs_read_update_atime() local
41 path = ecryptfs_dentry_to_lower_path(file->f_path.dentry); in ecryptfs_read_update_atime()
54 * to be used only for file reads. The function to be used for directory reads
57 static ssize_t ecryptfs_splice_read_update_atime(struct file *in, loff_t *ppos, in ecryptfs_splice_read_update_atime()
123 * @file: The eCryptfs directory file
126 static int ecryptfs_readdir(struct file *fil argument
188 ecryptfs_mmap(struct file * file,struct vm_area_struct * vma) ecryptfs_mmap() argument
210 ecryptfs_open(struct inode * inode,struct file * file) ecryptfs_open() argument
279 ecryptfs_dir_open(struct inode * inode,struct file * file) ecryptfs_dir_open() argument
309 ecryptfs_flush(struct file * file,fl_owner_t td) ecryptfs_flush() argument
321 ecryptfs_release(struct inode * inode,struct file * file) ecryptfs_release() argument
329 ecryptfs_dir_release(struct inode * inode,struct file * file) ecryptfs_dir_release() argument
337 ecryptfs_dir_llseek(struct file * file,loff_t offset,int whence) ecryptfs_dir_llseek() argument
343 ecryptfs_fsync(struct file * file,loff_t start,loff_t end,int datasync) ecryptfs_fsync() argument
354 ecryptfs_fasync(int fd,struct file * file,int flag) ecryptfs_fasync() argument
366 ecryptfs_unlocked_ioctl(struct file * file,unsigned int cmd,unsigned long arg) ecryptfs_unlocked_ioctl() argument
391 ecryptfs_compat_ioctl(struct file * file,unsigned int cmd,unsigned long arg) ecryptfs_compat_ioctl() argument
[all...]
/linux/drivers/gpu/drm/i915/gt/
H A Dshmem_utils.c17 struct file *shmem_create_from_data(const char *name, void *data, size_t len) in shmem_create_from_data()
19 struct file *file; in shmem_create_from_data() local
22 file = shmem_file_setup(name, PAGE_ALIGN(len), VM_NORESERVE); in shmem_create_from_data()
23 if (IS_ERR(file)) in shmem_create_from_data()
24 return file; in shmem_create_from_data()
26 err = shmem_write(file, 0, data, len); in shmem_create_from_data()
28 fput(file); in shmem_create_from_data()
32 return file; in shmem_create_from_data()
35 struct file *shmem_create_from_objec
38 struct file *file; shmem_create_from_object() local
58 shmem_pin_map(struct file * file) shmem_pin_map() argument
88 shmem_unpin_map(struct file * file,void * ptr) shmem_unpin_map() argument
94 __shmem_rw(struct file * file,loff_t off,void * ptr,size_t len,bool write) __shmem_rw() argument
130 shmem_read_to_iosys_map(struct file * file,loff_t off,struct iosys_map * map,size_t map_off,size_t len) shmem_read_to_iosys_map() argument
161 shmem_read(struct file * file,loff_t off,void * dst,size_t len) shmem_read() argument
166 shmem_write(struct file * file,loff_t off,void * src,size_t len) shmem_write() argument
[all...]
/linux/include/linux/
H A Dfile.h16 struct file;
18 extern void fput(struct file *);
26 extern struct file *alloc_file_pseudo(struct inode *, struct vfsmount *,
28 extern struct file *alloc_file_pseudo_noaccount(struct inode *, struct vfsmount *,
30 extern struct file *alloc_file_clone(struct file *, int flags,
33 /* either a reference to struct file + flags
44 #define fd_file(f) ((struct file *)((f).word & ~(FDPUT_FPUT|FDPUT_POS_UNLOCK)))
51 static inline struct fd BORROWED_FD(struct file *f) in BORROWED_FD()
55 static inline struct fd CLONED_FD(struct file * in BORROWED_FD()
[all...]
H A Dfs.h113 * flags in file.f_mode. Note that FMODE_READ and FMODE_WRITE must correspond
117 /* file is open for reading */
119 /* file is open for writing */
121 /* file is seekable */
123 /* file can be accessed using pread */
125 /* file can be accessed using pwrite */
203 * for an open file. These are the possible values of
298 struct file *ia_file;
407 struct file *ki_filp;
439 int (*read_folio)(struct file *, struc
1030 struct file *file; /* backpointer for security modules */ global() member
1098 struct file { global() struct
1101 f_opfile global() argument
1112 __anon884eb4ff090afile global() argument
1130 f_posfile global() argument
1133 f_reffile global() argument
1141 __anon884eb4ff0a0afile global() argument
1179 file_f_owner(const struct file * file) file_f_owner() argument
1199 file_dentry(const struct file * file) file_dentry() argument
1855 file_write_started(const struct file * file) file_write_started() argument
1870 file_write_not_started(const struct file * file) file_write_not_started() argument
2268 can_mmap_file(struct file * file) can_mmap_file() argument
2284 vfs_mmap(struct file * file,struct vm_area_struct * vma) vfs_mmap() argument
2292 vfs_mmap_prepare(struct file * file,struct vm_area_desc * desc) vfs_mmap_prepare() argument
2660 file_accessed(struct file * file) file_accessed() argument
2841 file_mnt_idmap(const struct file * file) file_mnt_idmap() argument
2908 file_clone_open(struct file * file) file_clone_open() argument
2945 finish_open_simple(struct file * file,int error) finish_open_simple() argument
3016 file_write_and_wait(struct file * file) file_write_and_wait() argument
3073 file_permission(struct file * file,int mask) file_permission() argument
3103 file_start_write(struct file * file) file_start_write() argument
3110 file_start_write_trylock(struct file * file) file_start_write_trylock() argument
3123 file_end_write(struct file * file) file_end_write() argument
3191 deny_write_access(struct file * file) deny_write_access() argument
3200 allow_write_access(struct file * file) allow_write_access() argument
3227 file_set_fsnotify_mode(struct file * file,fmode_t mode) file_set_fsnotify_mode() argument
3761 file_is_dax(const struct file * file) file_is_dax() argument
3785 iocb_flags(struct file * file) iocb_flags() argument
3960 dir_emit_dot(struct file * file,struct dir_context * ctx) dir_emit_dot() argument
3965 dir_emit_dotdot(struct file * file,struct dir_context * ctx) dir_emit_dotdot() argument
3970 dir_emit_dots(struct file * file,struct dir_context * ctx) dir_emit_dots() argument
[all...]
/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt76x02_debugfs.c10 mt76x02_ampdu_stat_show(struct seq_file *file, void *data) in mt76x02_ampdu_stat_show() argument
12 struct mt76x02_dev *dev = file->private; in mt76x02_ampdu_stat_show()
16 seq_puts(file, "Length: "); in mt76x02_ampdu_stat_show()
18 seq_printf(file, "%8d | ", i * 8 + j + 1); in mt76x02_ampdu_stat_show()
19 seq_puts(file, "\n"); in mt76x02_ampdu_stat_show()
20 seq_puts(file, "Count: "); in mt76x02_ampdu_stat_show()
22 seq_printf(file, "%8d | ", in mt76x02_ampdu_stat_show()
24 seq_puts(file, "\n"); in mt76x02_ampdu_stat_show()
25 seq_puts(file, "--------"); in mt76x02_ampdu_stat_show()
27 seq_puts(file, " in mt76x02_ampdu_stat_show()
36 read_txpower(struct seq_file * file,void * data) read_txpower() argument
48 mt76x02_dfs_stat_show(struct seq_file * file,void * data) mt76x02_dfs_stat_show() argument
75 read_agc(struct seq_file * file,void * data) read_agc() argument
[all...]
/linux/fs/ocfs2/
H A Dlocks.c5 * Userspace file locking support
19 #include "file.h"
23 static int ocfs2_do_flock(struct file *file, struct inode *inode, in ocfs2_do_flock() argument
27 struct ocfs2_file_private *fp = file->private_data; in ocfs2_do_flock()
58 locks_lock_file_wait(file, &request); in ocfs2_do_flock()
60 ocfs2_file_unlock(file); in ocfs2_do_flock()
63 ret = ocfs2_file_lock(file, level, trylock); in ocfs2_do_flock()
72 ret = locks_lock_file_wait(file, fl); in ocfs2_do_flock()
74 ocfs2_file_unlock(file); in ocfs2_do_flock()
82 ocfs2_do_funlock(struct file * file,int cmd,struct file_lock * fl) ocfs2_do_funlock() argument
98 ocfs2_flock(struct file * file,int cmd,struct file_lock * fl) ocfs2_flock() argument
116 ocfs2_lock(struct file * file,int cmd,struct file_lock * fl) ocfs2_lock() argument
[all...]
/linux/kernel/trace/
H A Dtrace_events_trigger.c33 * @file: The trace_event_file associated with the event
58 event_triggers_call(struct trace_event_file *file, in event_triggers_call() argument
66 if (list_empty(&file->triggers)) in event_triggers_call()
69 list_for_each_entry_rcu(data, &file->triggers, list) { in event_triggers_call()
89 bool __trace_trigger_soft_disabled(struct trace_event_file *file) in __trace_trigger_soft_disabled() argument
91 unsigned long eflags = file->flags; in __trace_trigger_soft_disabled()
94 event_triggers_call(file, NULL, NULL, NULL); in __trace_trigger_soft_disabled()
98 return trace_event_ignore_this_pid(file); in __trace_trigger_soft_disabled()
105 * @file: The trace_event_file associated with the event
116 event_triggers_post_call(struct trace_event_file *file, in event_triggers_post_call() argument
143 check_user_trigger(struct trace_event_file * file) check_user_trigger() argument
206 event_trigger_regex_open(struct inode * inode,struct file * file) event_trigger_regex_open() argument
243 trigger_process_regex(struct trace_event_file * file,char * buff) trigger_process_regex() argument
267 event_trigger_regex_write(struct file * file,const char __user * ubuf,size_t cnt,loff_t * ppos) event_trigger_regex_write() argument
301 event_trigger_regex_release(struct inode * inode,struct file * file) event_trigger_regex_release() argument
328 event_trigger_release(struct inode * inode,struct file * file) event_trigger_release() argument
452 trace_event_trigger_enable_disable(struct trace_event_file * file,int trigger_enable) trace_event_trigger_enable_disable() argument
488 struct trace_event_file *file; clear_event_triggers() local
511 update_cond_flag(struct trace_event_file * file) update_cond_flag() argument
547 register_trigger(char * glob,struct event_trigger_data * data,struct trace_event_file * file) register_trigger() argument
581 try_unregister_trigger(char * glob,struct event_trigger_data * test,struct trace_event_file * file) try_unregister_trigger() argument
620 unregister_trigger(char * glob,struct event_trigger_data * test,struct trace_event_file * file) unregister_trigger() argument
889 event_trigger_set_filter(struct event_command * cmd_ops,struct trace_event_file * file,char * param,struct event_trigger_data * trigger_data) event_trigger_set_filter() argument
926 event_trigger_register(struct event_command * cmd_ops,struct trace_event_file * file,char * glob,struct event_trigger_data * trigger_data) event_trigger_register() argument
944 event_trigger_unregister(struct event_command * cmd_ops,struct trace_event_file * file,char * glob,struct event_trigger_data * trigger_data) event_trigger_unregister() argument
973 event_trigger_parse(struct event_command * cmd_ops,struct trace_event_file * file,char * glob,char * cmd,char * param_and_filter) event_trigger_parse() argument
1041 set_trigger_filter(char * filter_str,struct event_trigger_data * trigger_data,struct trace_event_file * file) set_trigger_filter() argument
1258 struct trace_event_file *file = data->private_data; traceon_trigger() local
1279 struct trace_event_file *file = data->private_data; traceon_count_trigger() local
1306 struct trace_event_file *file = data->private_data; traceoff_trigger() local
1327 struct trace_event_file *file = data->private_data; traceoff_count_trigger() local
1434 struct trace_event_file *file = data->private_data; snapshot_trigger() local
1459 register_snapshot_trigger(char * glob,struct event_trigger_data * data,struct trace_event_file * file) register_snapshot_trigger() argument
1474 unregister_snapshot_trigger(char * glob,struct event_trigger_data * data,struct trace_event_file * file) unregister_snapshot_trigger() argument
1553 struct trace_event_file *file = data->private_data; stacktrace_trigger() local
1736 event_enable_trigger_parse(struct event_command * cmd_ops,struct trace_event_file * file,char * glob,char * cmd,char * param_and_filter) event_enable_trigger_parse() argument
1845 event_enable_register_trigger(char * glob,struct event_trigger_data * data,struct trace_event_file * file) event_enable_register_trigger() argument
1883 event_enable_unregister_trigger(char * glob,struct event_trigger_data * test,struct trace_event_file * file) event_enable_unregister_trigger() argument
[all...]
/linux/sound/core/seq/oss/
H A Dseq_oss.c44 static int odev_open(struct inode *inode, struct file *file);
45 static int odev_release(struct inode *inode, struct file *file);
46 static ssize_t odev_read(struct file *file, char __user *buf, size_t count, loff_t *offset);
47 static ssize_t odev_write(struct file *file, const char __user *buf, size_t count, loff_t *offset);
48 static long odev_ioctl(struct file *file, unsigne
118 odev_open(struct inode * inode,struct file * file) odev_open() argument
135 odev_release(struct inode * inode,struct file * file) odev_release() argument
151 odev_read(struct file * file,char __user * buf,size_t count,loff_t * offset) odev_read() argument
162 odev_write(struct file * file,const char __user * buf,size_t count,loff_t * offset) odev_write() argument
172 odev_ioctl(struct file * file,unsigned int cmd,unsigned long arg) odev_ioctl() argument
191 odev_ioctl_compat(struct file * file,unsigned int cmd,unsigned long arg) odev_ioctl_compat() argument
201 odev_poll(struct file * file,poll_table * wait) odev_poll() argument
[all...]
/linux/tools/objtool/
H A Dcheck.c37 struct instruction *find_insn(struct objtool_file *file, in find_insn() argument
42 hash_for_each_possible(file->insn_hash, insn, hash, sec_offset_hash(sec, offset)) { in find_insn()
50 struct instruction *next_insn_same_sec(struct objtool_file *file, in next_insn_same_sec() argument
54 return find_insn(file, insn->sec, insn->offset + insn->len); in next_insn_same_sec()
63 static struct instruction *next_insn_same_func(struct objtool_file *file, in next_insn_same_func() argument
66 struct instruction *next = next_insn_same_sec(file, insn); in next_insn_same_func()
80 return find_insn(file, func->cfunc->sec, func->cfunc->offset); in next_insn_same_func()
83 static struct instruction *prev_insn_same_sec(struct objtool_file *file, in prev_insn_same_sec() argument
88 return find_insn(file, insn->sec, insn->offset - insn->prev_len); in prev_insn_same_sec()
95 static struct instruction *prev_insn_same_sym(struct objtool_file *file, in prev_insn_same_sym() argument
106 for_each_insn(file,insn) global() argument
112 func_for_each_insn(file,func,insn) global() argument
117 sym_for_each_insn(file,sym,insn) global() argument
122 sym_for_each_insn_continue_reverse(file,sym,insn) global() argument
127 sec_for_each_insn_from(file,insn) global() argument
130 sec_for_each_insn_continue(file,insn) global() argument
248 __dead_end_function(struct objtool_file * file,struct symbol * func,int recursion) __dead_end_function() argument
323 dead_end_function(struct objtool_file * file,struct symbol * func) dead_end_function() argument
341 init_insn_state(struct objtool_file * file,struct insn_state * state,struct section * sec) init_insn_state() argument
427 decode_instructions(struct objtool_file * file) decode_instructions() argument
547 add_pv_ops(struct objtool_file * file,const char * symname) add_pv_ops() argument
591 init_pv_ops(struct objtool_file * file) init_pv_ops() argument
632 create_static_call_sections(struct objtool_file * file) create_static_call_sections() argument
718 create_retpoline_sites_sections(struct objtool_file * file) create_retpoline_sites_sections() argument
756 create_return_sites_sections(struct objtool_file * file) create_return_sites_sections() argument
794 create_ibt_endbr_seal_sections(struct objtool_file * file) create_ibt_endbr_seal_sections() argument
851 create_cfi_sections(struct objtool_file * file) create_cfi_sections() argument
899 create_mcount_loc_sections(struct objtool_file * file) create_mcount_loc_sections() argument
945 create_direct_call_sections(struct objtool_file * file) create_direct_call_sections() argument
987 add_ignores(struct objtool_file * file) add_ignores() argument
1213 add_uaccess_safe(struct objtool_file * file) add_uaccess_safe() argument
1257 insn_reloc(struct objtool_file * file,struct instruction * insn) insn_reloc() argument
1288 annotate_call_site(struct objtool_file * file,struct instruction * insn,bool sibling) annotate_call_site() argument
1368 add_call_dest(struct objtool_file * file,struct instruction * insn,struct symbol * dest,bool sibling) add_call_dest() argument
1387 add_retpoline_call(struct objtool_file * file,struct instruction * insn) add_retpoline_call() argument
1421 add_return_call(struct objtool_file * file,struct instruction * insn,bool add) add_return_call() argument
1434 is_first_func_insn(struct objtool_file * file,struct instruction * insn,struct symbol * sym) is_first_func_insn() argument
1456 jump_is_sibling_call(struct objtool_file * file,struct instruction * from,struct instruction * to) jump_is_sibling_call() argument
1481 add_jump_destinations(struct objtool_file * file) add_jump_destinations() argument
1642 add_call_destinations(struct objtool_file * file) add_call_destinations() argument
1709 handle_group_alt(struct objtool_file * file,struct special_alt * special_alt,struct instruction * orig_insn,struct instruction ** new_insn) handle_group_alt() argument
1858 handle_jump_alt(struct objtool_file * file,struct special_alt * special_alt,struct instruction * orig_insn,struct instruction ** new_insn) handle_jump_alt() argument
1909 add_special_section_alts(struct objtool_file * file) add_special_section_alts() argument
1987 add_jump_table(struct objtool_file * file,struct instruction * insn) add_jump_table() argument
2061 find_jump_table(struct objtool_file * file,struct symbol * func,struct instruction * insn) find_jump_table() argument
2110 mark_func_jump_tables(struct objtool_file * file,struct symbol * func) mark_func_jump_tables() argument
2140 add_func_jump_tables(struct objtool_file * file,struct symbol * func) add_func_jump_tables() argument
2163 add_jump_table_alts(struct objtool_file * file) add_jump_table_alts() argument
2193 read_unwind_hints(struct objtool_file * file) read_unwind_hints() argument
2295 read_annotate(struct objtool_file * file,int (* func)(struct objtool_file * file,int type,struct instruction * insn)) read_annotate() argument
2296 read_annotate(struct objtool_file * file,int (* func)(struct objtool_file * file,int type,struct instruction * insn)) read_annotate() argument
2340 __annotate_early(struct objtool_file * file,int type,struct instruction * insn) __annotate_early() argument
2363 __annotate_ifc(struct objtool_file * file,int type,struct instruction * insn) __annotate_ifc() argument
2393 __annotate_late(struct objtool_file * file,int type,struct instruction * insn) __annotate_late() argument
2469 classify_symbols(struct objtool_file * file) classify_symbols() argument
2503 mark_rodata(struct objtool_file * file) mark_rodata() argument
2530 decode_sections(struct objtool_file * file) decode_sections() argument
3195 propagate_alt_cfi(struct objtool_file * file,struct instruction * insn) propagate_alt_cfi() argument
3345 pv_call_dest(struct objtool_file * file,struct instruction * insn) pv_call_dest() argument
3372 noinstr_call_dest(struct objtool_file * file,struct instruction * insn,struct symbol * func) noinstr_call_dest() argument
3410 validate_call(struct objtool_file * file,struct instruction * insn,struct insn_state * state) validate_call() argument
3433 validate_sibling_call(struct objtool_file * file,struct instruction * insn,struct insn_state * state) validate_sibling_call() argument
3480 next_insn_to_validate(struct objtool_file * file,struct instruction * insn) next_insn_to_validate() argument
3547 validate_branch(struct objtool_file * file,struct symbol * func,struct instruction * insn,struct insn_state state) validate_branch() argument
3809 validate_unwind_hint(struct objtool_file * file,struct instruction * insn,struct insn_state * state) validate_unwind_hint() argument
3823 validate_unwind_hints(struct objtool_file * file,struct section * sec) validate_unwind_hints() argument
3851 validate_unret(struct objtool_file * file,struct instruction * insn) validate_unret() argument
3960 validate_unrets(struct objtool_file * file) validate_unrets() argument
3975 validate_retpoline(struct objtool_file * file) validate_retpoline() argument
4021 ignore_unreachable_insn(struct objtool_file * file,struct instruction * insn) ignore_unreachable_insn() argument
4130 add_prefix_symbol(struct objtool_file * file,struct symbol * func) add_prefix_symbol() argument
4178 add_prefix_symbols(struct objtool_file * file) add_prefix_symbols() argument
4198 validate_symbol(struct objtool_file * file,struct section * sec,struct symbol * sym,struct insn_state * state) validate_symbol() argument
4225 validate_section(struct objtool_file * file,struct section * sec) validate_section() argument
4244 validate_noinstr_sections(struct objtool_file * file) validate_noinstr_sections() argument
4270 validate_functions(struct objtool_file * file) validate_functions() argument
4291 noendbr_range(struct objtool_file * file,struct instruction * insn) noendbr_range() argument
4309 __validate_ibt_insn(struct objtool_file * file,struct instruction * insn,struct instruction * dest) __validate_ibt_insn() argument
4354 validate_ibt_insn(struct objtool_file * file,struct instruction * insn) validate_ibt_insn() argument
4420 validate_ibt_data_reloc(struct objtool_file * file,struct reloc * reloc) validate_ibt_data_reloc() argument
4449 validate_ibt(struct objtool_file * file) validate_ibt() argument
4502 validate_sls(struct objtool_file * file) validate_sls() argument
4535 validate_reachable_instructions(struct objtool_file * file) validate_reachable_instructions() argument
4616 disas_warned_funcs(struct objtool_file * file) disas_warned_funcs() argument
4657 free_insns(struct objtool_file * file) free_insns() argument
4675 check(struct objtool_file * file) check() argument
[all...]
/linux/mm/
H A Dmemfd.c2 * memfd_create system call and file sealing support
7 * This file is released under the GPL.
13 #include <linux/file.h>
68 struct folio *memfd_alloc_folio(struct file *memfd, pgoff_t idx) in memfd_alloc_folio()
184 static unsigned int *memfd_file_seals_ptr(struct file *file) in memfd_file_seals_ptr() argument
186 if (shmem_file(file)) in memfd_file_seals_ptr()
187 return &SHMEM_I(file_inode(file))->seals; in memfd_file_seals_ptr()
190 if (is_file_hugepages(file)) in memfd_file_seals_ptr()
191 return &HUGETLBFS_I(file_inode(file)) in memfd_file_seals_ptr()
204 memfd_add_seals(struct file * file,unsigned int seals) memfd_add_seals() argument
286 memfd_get_seals(struct file * file) memfd_get_seals() argument
293 memfd_fcntl(struct file * file,unsigned int cmd,unsigned int arg) memfd_fcntl() argument
371 memfd_check_seals_mmap(struct file * file,vm_flags_t * vm_flags_ptr) memfd_check_seals_mmap() argument
435 struct file *file; alloc_file() local
473 struct file *file; SYSCALL_DEFINE2() local
[all...]
/linux/fs/ceph/
H A Dioctl.c16 * get and set the file layout
18 static long ceph_ioctl_get_layout(struct file *file, void __user *arg) in ceph_ioctl_get_layout() argument
20 struct ceph_inode_info *ci = ceph_inode(file_inode(file)); in ceph_ioctl_get_layout()
24 err = ceph_do_getattr(file_inode(file), CEPH_STAT_CAP_LAYOUT, false); in ceph_ioctl_get_layout()
65 static long ceph_ioctl_set_layout(struct file *file, void __user *arg) in ceph_ioctl_set_layout() argument
67 struct inode *inode = file_inode(file); in ceph_ioctl_set_layout()
71 struct ceph_inode_info *ci = ceph_inode(file_inode(file)); in ceph_ioctl_set_layout()
79 err = ceph_do_getattr(file_inode(file), CEPH_STAT_CAP_LAYOU in ceph_ioctl_set_layout()
137 ceph_ioctl_set_layout_policy(struct file * file,void __user * arg) ceph_ioctl_set_layout_policy() argument
180 ceph_ioctl_get_dataloc(struct file * file,void __user * arg) ceph_ioctl_get_dataloc() argument
242 ceph_ioctl_lazyio(struct file * file) ceph_ioctl_lazyio() argument
267 ceph_ioctl_syncio(struct file * file) ceph_ioctl_syncio() argument
275 vet_mds_for_fscrypt(struct file * file) vet_mds_for_fscrypt() argument
294 ceph_set_encryption_policy(struct file * file,unsigned long arg) ceph_set_encryption_policy() argument
359 ceph_ioctl(struct file * file,unsigned int cmd,unsigned long arg) ceph_ioctl() argument
[all...]
/linux/fs/proc/
H A Dinode.c19 #include <linux/file.h>
226 * "struct file" needs to be available at the right moment. in close_pdeo()
235 struct file *file; in close_pdeo() local
241 file = pdeo->file; in close_pdeo()
242 pde->proc_ops->proc_release(file_inode(file), file); in close_pdeo()
275 static loff_t proc_reg_llseek(struct file *file, loff_ argument
304 pde_read(struct proc_dir_entry * pde,struct file * file,char __user * buf,size_t count,loff_t * ppos) pde_read() argument
312 proc_reg_read(struct file * file,char __user * buf,size_t count,loff_t * ppos) proc_reg_read() argument
326 pde_write(struct proc_dir_entry * pde,struct file * file,const char __user * buf,size_t count,loff_t * ppos) pde_write() argument
334 proc_reg_write(struct file * file,const char __user * buf,size_t count,loff_t * ppos) proc_reg_write() argument
348 pde_poll(struct proc_dir_entry * pde,struct file * file,struct poll_table_struct * pts) pde_poll() argument
356 proc_reg_poll(struct file * file,struct poll_table_struct * pts) proc_reg_poll() argument
370 pde_ioctl(struct proc_dir_entry * pde,struct file * file,unsigned int cmd,unsigned long arg) pde_ioctl() argument
378 proc_reg_unlocked_ioctl(struct file * file,unsigned int cmd,unsigned long arg) proc_reg_unlocked_ioctl() argument
393 pde_compat_ioctl(struct proc_dir_entry * pde,struct file * file,unsigned int cmd,unsigned long arg) pde_compat_ioctl() argument
401 proc_reg_compat_ioctl(struct file * file,unsigned int cmd,unsigned long arg) proc_reg_compat_ioctl() argument
415 pde_mmap(struct proc_dir_entry * pde,struct file * file,struct vm_area_struct * vma) pde_mmap() argument
423 proc_reg_mmap(struct file * file,struct vm_area_struct * vma) proc_reg_mmap() argument
438 pde_get_unmapped_area(struct proc_dir_entry * pde,struct file * file,unsigned long orig_addr,unsigned long len,unsigned long pgoff,unsigned long flags) pde_get_unmapped_area() argument
453 proc_reg_get_unmapped_area(struct file * file,unsigned long orig_addr,unsigned long len,unsigned long pgoff,unsigned long flags) proc_reg_get_unmapped_area() argument
469 proc_reg_open(struct inode * inode,struct file * file) proc_reg_open() argument
531 proc_reg_release(struct inode * inode,struct file * file) proc_reg_release() argument
[all...]
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_ioctls.h13 struct drm_file *file);
15 struct drm_file *file);
17 struct drm_file *file);
19 struct drm_file *file);
21 struct drm_file *file);
23 struct drm_file *file);
25 struct drm_file *file);
27 struct drm_file *file);
29 struct drm_file *file);
31 struct drm_file *file);
[all...]

12345678910>>...162