/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_subprogs_extable.c | 22 int BPF_PROG(handle_fexit_ret_subprogs, int arg, struct file *ret) 32 int BPF_PROG(handle_fexit_ret_subprogs2, int arg, struct file *ret) 42 int BPF_PROG(handle_fexit_ret_subprogs3, int arg, struct file *ret)
|
/linux-master/tools/perf/tests/shell/ |
H A D | buildid.sh | 41 ex_pe=$(dirname $0)/../pe-file.exe 53 # a PE file, but we can extract the whole section with objcopy and 79 file=${build_id_dir}/.build-id/$id_dir/`readlink ${link}`/elf 80 echo "file: ${file}" 82 # Check for file permission of original file 83 # in case of pe-file.exe file 86 if [ -x $1 ] && [ ! -x $file ]; the [all...] |
/linux-master/include/media/ |
H A D | dvbdev.h | 179 int (*kernel_ioctl)(struct file *file, unsigned int cmd, void *arg); 339 * @file: pointer to &struct file. 344 int dvb_generic_open(struct inode *inode, struct file *file); 350 * @file: pointer to &struct file. 355 int dvb_generic_release(struct inode *inode, struct file *file); [all...] |
/linux-master/drivers/vdpa/mlx5/net/ |
H A D | debug.c | 8 static int tirn_show(struct seq_file *file, void *priv) argument 10 struct mlx5_vdpa_net *ndev = file->private; 12 seq_printf(file, "0x%x\n", ndev->res.tirn); 30 static int rx_flow_table_show(struct seq_file *file, void *priv) argument 32 struct mlx5_vdpa_net *ndev = file->private; 34 seq_printf(file, "0x%x\n", mlx5_flow_table_id(ndev->rxft)); 53 static int packets_show(struct seq_file *file, void *priv) argument 55 struct mlx5_vdpa_counter *counter = file->private; 64 seq_printf(file, "0x%llx\n", packets); 68 static int bytes_show(struct seq_file *file, voi argument [all...] |
/linux-master/drivers/tty/ |
H A D | tty.h | 73 void tty_open_proc_set_tty(struct file *filp, struct tty_struct *tty); 86 long tty_ioctl(struct file *file, unsigned int cmd, unsigned long arg); 88 struct file *file, unsigned int cmd, unsigned long arg); 91 int tty_alloc_file(struct file *file); 92 void tty_add_file(struct tty_struct *tty, struct file *file); 93 void tty_free_file(struct file *fil [all...] |
/linux-master/lib/kunit/ |
H A D | debugfs.c | 26 * /sys/kernel/debug/kunit/<testsuite>/run Write to this file to trigger 94 static int debugfs_release(struct inode *inode, struct file *file) argument 96 return single_release(inode, file); 99 static int debugfs_results_open(struct inode *inode, struct file *file) argument 105 return single_open(file, debugfs_print_results, suite); 109 * Print a usage message to the debugfs "run" file 116 seq_puts(seq, "Write to this file to trigger the test suite to run.\n"); 123 * The debugfs "run" file (/sy 127 debugfs_run_open(struct inode *inode, struct file *file) argument 142 debugfs_run(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument [all...] |
/linux-master/drivers/media/platform/chips-media/wave5/ |
H A D | wave5-helper.h | 18 int wave5_vpu_release_device(struct file *filp, 24 int wave5_vpu_g_fmt_out(struct file *file, void *fh, struct v4l2_format *f);
|
/linux-master/drivers/gpu/drm/i915/display/ |
H A D | intel_display_debugfs_params.c | 25 static int intel_display_param_int_open(struct inode *inode, struct file *file) argument 27 return single_open(file, intel_display_param_int_show, inode->i_private); 30 static ssize_t intel_display_param_int_write(struct file *file, argument 34 struct seq_file *m = file->private_data; 78 static int intel_display_param_uint_open(struct inode *inode, struct file *file) argument 80 return single_open(file, intel_display_param_uint_show, inode->i_private); 83 static ssize_t intel_display_param_uint_write(struct file *fil argument [all...] |
H A D | intel_wm.c | 258 static int pri_wm_latency_open(struct inode *inode, struct file *file) argument 265 return single_open(file, pri_wm_latency_show, dev_priv); 268 static int spr_wm_latency_open(struct inode *inode, struct file *file) argument 275 return single_open(file, spr_wm_latency_show, dev_priv); 278 static int cur_wm_latency_open(struct inode *inode, struct file *file) argument 285 return single_open(file, cur_wm_latency_show, dev_priv); 288 static ssize_t wm_latency_write(struct file *fil argument 322 pri_wm_latency_write(struct file *file, const char __user *ubuf, size_t len, loff_t *offp) argument 337 spr_wm_latency_write(struct file *file, const char __user *ubuf, size_t len, loff_t *offp) argument 352 cur_wm_latency_write(struct file *file, const char __user *ubuf, size_t len, loff_t *offp) argument [all...] |
/linux-master/include/linux/ |
H A D | shmem_fs.h | 5 #include <linux/file.h> 24 unsigned long alloced; /* data pages alloced to file */ 33 struct timespec64 i_crtime; /* file creation time */ 89 extern struct file *shmem_file_setup(const char *name, 91 extern struct file *shmem_kernel_file_setup(const char *name, loff_t size, 93 extern struct file *shmem_file_setup_with_mnt(struct vfsmount *mnt, 96 extern unsigned long shmem_get_unmapped_area(struct file *, unsigned long addr, 98 extern int shmem_lock(struct file *file, int lock, struct ucounts *ucounts); 162 static inline bool shmem_file(struct file *fil argument [all...] |
H A D | debugfs.h | 3 * debugfs.h - a tiny little debug file system 49 static int __fops ## _open(struct inode *inode, struct file *file) \ 52 return simple_attr_open(inode, file, __get, __set, __fmt); \ 102 const struct file_operations *debugfs_real_fops(const struct file *filp); 107 ssize_t debugfs_attr_read(struct file *file, char __user *buf, 109 ssize_t debugfs_attr_write(struct file *file, const char __user *buf, 111 ssize_t debugfs_attr_write_signed(struct file *fil 271 debugfs_attr_read(struct file *file, char __user *buf, size_t len, loff_t *ppos) argument 277 debugfs_attr_write(struct file *file, const char __user *buf, size_t len, loff_t *ppos) argument 284 debugfs_attr_write_signed(struct file *file, const char __user *buf, size_t len, loff_t *ppos) argument 379 debugfs_read_file_bool(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument 386 debugfs_write_file_bool(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument 393 debugfs_read_file_str(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument [all...] |
/linux-master/io_uring/ |
H A D | nop.c | 5 #include <linux/file.h> 14 /* NOTE: kiocb has the file as the first member, so don't do it here */ 15 struct file *file; member in struct:io_nop
|
H A D | filetable.c | 4 #include <linux/file.h> 63 static int io_install_fixed_file(struct io_ring_ctx *ctx, struct file *file, 70 if (io_is_uring_fops(file)) 92 io_fixed_file_set(file_slot, file); 96 int __io_fixed_fd_install(struct io_ring_ctx *ctx, struct file *file, argument 111 ret = io_install_fixed_file(ctx, file, file_slot); 121 struct file *file, unsigne 120 io_fixed_fd_install(struct io_kiocb *req, unsigned int issue_flags, struct file *file, unsigned int file_slot) argument [all...] |
/linux-master/fs/xfs/scrub/ |
H A D | xfile.h | 10 struct file *file; member in struct:xfile 32 return file_inode(xf->file)->i_blocks << SECTOR_SHIFT;
|
/linux-master/drivers/infiniband/hw/hfi1/ |
H A D | debugfs.c | 25 /* wrappers to enforce srcu in seq file */ 26 ssize_t hfi1_seq_read(struct file *file, char __user *buf, size_t size, argument 29 struct dentry *d = file->f_path.dentry; 35 r = seq_read(file, buf, size, ppos); 40 loff_t hfi1_seq_lseek(struct file *file, loff_t offset, int whence) argument 42 struct dentry *d = file->f_path.dentry; 48 r = seq_lseek(file, offset, whence); 53 #define private2dd(file) (file_inod 417 dev_counters_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument 432 dev_names_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument 457 portnames_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument 472 portcntrs_debugfs_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument 500 asic_flags_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument 549 asic_flags_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument 595 dc8051_memory_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument 635 debugfs_lcb_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument 669 debugfs_lcb_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument 705 qsfp_debugfs_dump(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument 725 __i2c_debugfs_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos, u32 target) argument 765 i2c1_debugfs_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument 772 i2c2_debugfs_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument 779 __i2c_debugfs_read(struct file *file, char __user *buf, size_t count, loff_t *ppos, u32 target) argument 825 i2c1_debugfs_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument 832 i2c2_debugfs_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument 839 __qsfp_debugfs_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos, u32 target) argument 872 qsfp1_debugfs_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument 879 qsfp2_debugfs_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument 886 __qsfp_debugfs_read(struct file *file, char __user *buf, size_t count, loff_t *ppos, u32 target) argument 930 qsfp1_debugfs_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument 937 qsfp2_debugfs_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument 1046 exprom_wp_debugfs_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument 1052 exprom_wp_debugfs_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument [all...] |
/linux-master/fs/cachefiles/ |
H A D | interface.c | 11 #include <linux/file.h> 93 ASSERTCMP(object->file, ==, NULL); 108 * Adjust the size of a cache file if necessary to match the DIO size. We keep 111 * careful of someone expanding the file and accidentally accreting the 117 struct file *file = object->file; local 128 if (!file) 131 oi_size = i_size_read(file_inode(file)); 135 inode_lock(file_inode(file)); 232 cachefiles_shorten_object(struct cachefiles_object *object, struct file *file, loff_t new_size) argument 285 struct file *file = cachefiles_cres_file(cres); local [all...] |
/linux-master/drivers/infiniband/hw/qib/ |
H A D | qib_fs.c | 8 * General Public License (GPL) Version 2, available from the file 48 #define private2dd(file) (file_inode(file)->i_private) 103 static ssize_t driver_stats_read(struct file *file, char __user *buf, argument 131 static ssize_t driver_names_read(struct file *file, char __user *buf, argument 144 static ssize_t dev_counters_read(struct file *file, char __user *buf, argument 149 struct qib_devdata *dd = private2dd(file); 156 dev_names_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument 178 portnames_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument 190 portcntrs_1_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument 202 portcntrs_2_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument 222 qsfp_1_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument 243 qsfp_2_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument 269 flash_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument 320 flash_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument [all...] |
/linux-master/security/integrity/ima/ |
H A D | ima_main.c | 19 #include <linux/file.h> 85 /* Prevent mmap'ing a file execute that is already mmap'ed write */ 86 static int mmap_violation_check(enum ima_hooks func, struct file *file, argument 94 mapping_writably_mapped(file->f_mapping)) { 96 inode = file_inode(file); 99 *pathname = ima_d_path(&file->f_path, pathbuf, 111 * - Opening a file for write when already open for read, 113 * - Opening a file for read when already open for write, 114 * could result in a file measuremen 117 ima_rdwr_violation_check(struct file *file, struct ima_iint_cache *iint, int must_measure, char **pathbuf, const char **pathname, char *filename) argument 157 ima_check_last_writer(struct ima_iint_cache *iint, struct inode *inode, struct file *file) argument 193 ima_file_free(struct file *file) argument 208 process_measurement(struct file *file, const struct cred *cred, u32 secid, char *buf, loff_t size, int mask, enum ima_hooks func) argument 443 ima_file_mmap(struct file *file, unsigned long reqprot, unsigned long prot, unsigned long flags) argument 486 struct file *file; local 567 ima_file_check(struct file *file, int mask) argument 577 __ima_inode_hash(struct inode *inode, struct file *file, char *buf, size_t buf_size) argument 654 ima_file_hash(struct file *file, char *buf, size_t buf_size) argument 767 ima_read_file(struct file *file, enum kernel_read_file_id read_id, bool contents) argument 817 ima_post_read_file(struct file *file, char *buf, loff_t size, enum kernel_read_file_id read_id) argument [all...] |
/linux-master/drivers/pnp/isapnp/ |
H A D | proc.c | 17 static loff_t isapnp_proc_bus_lseek(struct file *file, loff_t off, int whence) argument 19 return fixed_size_llseek(file, off, whence, 256); 22 static ssize_t isapnp_proc_bus_read(struct file *file, char __user * buf, argument 25 struct pnp_dev *dev = pde_data(file_inode(file));
|
/linux-master/fs/hostfs/ |
H A D | hostfs.h | 9 * changed so that this file can be included in both kernel and user files. 88 extern int set_attr(const char *file, struct hostfs_iattr *attrs, int fd); 90 extern int unlink_file(const char *file); 91 extern int do_mkdir(const char *file, int mode); 92 extern int hostfs_do_rmdir(const char *file); 93 extern int do_mknod(const char *file, int mode, unsigned int major, 96 extern int hostfs_do_readlink(char *file, char *buf, int size);
|
/linux-master/kernel/locking/ |
H A D | lock_events.c | 37 * Writing to the special ".reset_counts" file will reset all the above 61 ssize_t __weak lockevent_read(struct file *file, char __user *user_buf, argument 69 * Get the counter ID stored in file->f_inode->i_private 71 id = (long)file_inode(file)->i_private; 88 static ssize_t lockevent_write(struct file *file, const char __user *user_buf, argument 94 * Get the counter ID stored in file->f_inode->i_private 96 if ((long)file_inode(file)->i_private != LOCKEVENT_reset_cnts)
|
/linux-master/tools/perf/arch/arm64/util/ |
H A D | header.c | 28 FILE *file; local 33 file = fopen(path, "r"); 34 if (!file) { 35 pr_debug("fopen failed for file %s\n", path); 39 if (!fgets(buf, MIDR_SIZE, file)) { 40 fclose(file); 43 fclose(file);
|
/linux-master/samples/v4l/ |
H A D | v4l2-pci-skeleton.c | 290 static int skeleton_querycap(struct file *file, void *priv, argument 293 struct skeleton *skel = video_drvdata(file); 340 static int skeleton_try_fmt_vid_cap(struct file *file, void *priv, argument 343 struct skeleton *skel = video_drvdata(file); 358 static int skeleton_s_fmt_vid_cap(struct file *file, void *priv, argument 361 struct skeleton *skel = video_drvdata(file); 364 ret = skeleton_try_fmt_vid_cap(file, pri 380 skeleton_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f) argument 389 skeleton_enum_fmt_vid_cap(struct file *file, void *priv, struct v4l2_fmtdesc *f) argument 399 skeleton_s_std(struct file *file, void *priv, v4l2_std_id std) argument 431 skeleton_g_std(struct file *file, void *priv, v4l2_std_id *std) argument 450 skeleton_querystd(struct file *file, void *priv, v4l2_std_id *std) argument 477 skeleton_s_dv_timings(struct file *file, void *_fh, struct v4l2_dv_timings *timings) argument 516 skeleton_g_dv_timings(struct file *file, void *_fh, struct v4l2_dv_timings *timings) argument 529 skeleton_enum_dv_timings(struct file *file, void *_fh, struct v4l2_enum_dv_timings *timings) argument 551 skeleton_query_dv_timings(struct file *file, void *_fh, struct v4l2_dv_timings *timings) argument 580 skeleton_dv_timings_cap(struct file *file, void *fh, struct v4l2_dv_timings_cap *cap) argument 592 skeleton_enum_input(struct file *file, void *priv, struct v4l2_input *i) argument 611 skeleton_s_input(struct file *file, void *priv, unsigned int i) argument 638 skeleton_g_input(struct file *file, void *priv, unsigned int *i) argument [all...] |
/linux-master/fs/ |
H A D | eventpoll.c | 13 #include <linux/file.h> 63 * insertion does not create a cycle of epoll file descriptors, which 72 * before e2->mtx). Since we disallow cycles of epoll file 75 * of epoll file descriptors, we use the current recursion depth as 103 struct file *file; member in struct:epoll_filefd 116 * Wait queue item that will be linked to the target file wait 126 * Each file descriptor added to the eventpoll interface will 148 /* The file descriptor information this item refers to */ 152 * Protected by file 216 struct file *file; member in struct:eventpoll 288 list_file(struct file *file) argument 349 ep_set_ffd(struct epoll_filefd *ffd, struct file *file, int fd) argument 498 ep_eventpoll_bp_ioctl(struct file *file, unsigned int cmd, unsigned long arg) argument 552 ep_eventpoll_bp_ioctl(struct file *file, unsigned int cmd, unsigned long arg) argument 805 struct file *file = epi->ffd.file; local 911 ep_eventpoll_ioctl(struct file *file, unsigned int cmd, unsigned long arg) argument 932 ep_eventpoll_release(struct inode *inode, struct file *file) argument 944 __ep_eventpoll_poll(struct file *file, poll_table *wait, int depth) argument 1002 struct file *file; local 1018 struct file *file = epi_fget(epi); local 1037 ep_eventpoll_poll(struct file *file, poll_table *wait) argument 1083 eventpoll_release_file(struct file *file) argument 1145 ep_find(struct eventpoll *ep, struct file *file, int fd) argument 1189 get_epoll_tfile_raw_ptr(struct file *file, int tfd, unsigned long toff) argument 1413 ep_ptable_queue_proc(struct file *file, wait_queue_head_t *whead, poll_table *pt) argument 1582 attach_epitem(struct file *file, struct epitem *epi) argument 2175 struct file *file; local [all...] |
/linux-master/kernel/trace/ |
H A D | trace_events.c | 72 #define do_for_each_event_file(tr, file) \ 74 list_for_each_entry(file, &tr->events, list) 76 #define do_for_each_event_file_safe(tr, file) \ 79 list_for_each_entry_safe(file, ___n, &tr->events, list) 530 struct trace_event_file *file = data; local 537 file); 541 file); 567 struct trace_event_file *file; local 572 do_for_each_event_file(tr, file) { 574 if (!(file 589 struct trace_event_file *file; local 609 __ftrace_event_enable_disable(struct trace_event_file *file, int enable, int soft_disable) argument 721 trace_event_enable_disable(struct trace_event_file *file, int enable, int soft_disable) argument 727 ftrace_event_enable_disable(struct trace_event_file *file, int enable) argument 735 struct trace_event_file *file; local 886 struct trace_event_file *file; local 993 event_file_get(struct trace_event_file *file) argument 998 event_file_put(struct trace_event_file *file) argument 1014 remove_event_file_dir(struct trace_event_file *file) argument 1031 struct trace_event_file *file; local 1180 ftrace_event_write(struct file *file, const char __user *ubuf, size_t cnt, loff_t *ppos) argument 1222 struct trace_event_file *file = v; local 1244 struct trace_event_file *file; local 1262 struct trace_event_file *file = v; local 1277 struct trace_event_file *file; local 1294 struct trace_event_file *file = v; local 1384 struct trace_event_file *file; local 1414 struct trace_event_file *file; local 1456 struct trace_event_file *file; local 1656 trace_format_open(struct inode *inode, struct file *file) argument 1694 struct trace_event_file *file; local 1727 struct trace_event_file *file; local 1826 subsystem_release(struct inode *inode, struct file *file) argument 2003 struct trace_event_file *file; local 2211 ftrace_event_open(struct inode *inode, struct file *file, const struct seq_operations *seq_ops) argument 2231 ftrace_event_release(struct inode *inode, struct file *file) argument 2241 ftrace_event_avail_open(struct inode *inode, struct file *file) argument 2250 ftrace_event_set_open(struct inode *inode, struct file *file) argument 2271 ftrace_event_set_pid_open(struct inode *inode, struct file *file) argument 2292 ftrace_event_set_npid_open(struct inode *inode, struct file *file) argument 2360 event_subsystem_dir(struct trace_array *tr, const char *name, struct trace_event_file *file, struct eventfs_inode *parent) argument 2482 struct trace_event_file *file = *data; local 2558 struct trace_event_file *file = data; local 2564 event_create_dir(struct eventfs_inode *parent, struct trace_event_file *file) argument 2654 struct trace_event_file *file; local 2675 struct trace_event_file *file; local 2974 struct trace_event_file *file; local 3044 struct trace_event_file *file; local 3065 trace_early_triggers(struct trace_event_file *file, const char *name) argument 3092 struct trace_event_file *file; local 3152 struct trace_event_file *file; local 3317 struct trace_event_file *file; local 3340 struct trace_event_file *file; local 3375 struct trace_event_file *file = NULL; local 3425 trace_put_event_file(struct trace_event_file *file) argument 3442 struct trace_event_file *file; member in struct:event_probe_data 3626 struct trace_event_file *file; local 3767 struct trace_event_file *file; local 3807 struct trace_event_file *file, *next; local 4199 struct trace_event_file *file; local [all...] |