Searched refs:file (Results 126 - 150 of 3441) sorted by relevance

1234567891011>>

/linux-master/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>
126 static unsigned int *memfd_file_seals_ptr(struct file *file) argument
128 if (shmem_file(file))
129 return &SHMEM_I(file_inode(file))->seals;
132 if (is_file_hugepages(file))
133 return &HUGETLBFS_I(file_inode(file))->seals;
146 static int memfd_add_seals(struct file *fil argument
228 memfd_get_seals(struct file *file) argument
235 memfd_fcntl(struct file *file, unsigned int cmd, unsigned int arg) argument
288 struct file *file; local
[all...]
/linux-master/include/misc/
H A Dcxl.h143 * These calls allow drivers to create their own file descriptors and make them
144 * identical to the cxl file descriptor user API. An example use case:
152 * // Create and attach a new file descriptor to my file ops
153 * file = cxl_get_fd(ctx, &cxl_my_fops, &fd);
157 * fput(file);
162 * fd_install(fd, file);
165 * This inits a context, and gets a file descriptor and associates some file
166 * ops to that file descripto
[all...]
/linux-master/tools/perf/scripts/perl/bin/
H A Drw-by-file-report2 # description: r/w activity for a program, by file
5 echo "usage: rw-by-file <comm>"
10 perf script $@ -s "$PERF_EXEC_PATH"/scripts/perl/rw-by-file.pl $comm
/linux-master/fs/coda/
H A Dcoda_int.h6 struct file;
15 int coda_fsync(struct file *coda_file, loff_t start, loff_t end, int datasync);
/linux-master/include/media/
H A Dmedia-devnode.h34 * struct media_file_operations - Media device file operations
49 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 *);
124 * races with unregister and device file open calls.
145 * @filp: pointer to struct &file
[all...]
/linux-master/scripts/
H A Dcheckversion.pl15 foreach my $file (@ARGV) {
16 next if $file =~ "include/generated/uapi/linux/version\.h";
17 next if $file =~ "usr/include/linux/version\.h";
18 # Open this file.
19 open( my $f, '<', $file )
20 or die "Can't open $file: $!\n";
57 print "$file: $.: need linux/version.h\n";
62 print "$file: $iLinuxVersion linux/version.h not needed.\n";
68 print "$file: version use is OK ($iLinuxVersion)\n";
71 print "$file
[all...]
H A Dcheckdeclares.pl29 foreach my $file (@ARGV) {
30 open(my $f, '<', $file)
31 or die "Cannot open $file: $!.\n";
45 print "$file: struct $structname is declared more than once.\n";
/linux-master/include/linux/
H 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)
21 static inline struct ptr_ring *tap_get_ptr_ring(struct file *f)
68 struct file *file; member in struct:tap_queue
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_drv.h47 long amdgpu_drm_ioctl(struct file *filp,
50 long amdgpu_kms_compat_ioctl(struct file *filp,
/linux-master/fs/romfs/
H A Dmmap-nommu.c18 static unsigned long romfs_get_unmapped_area(struct file *file, argument
24 struct inode *inode = file->f_mapping->host;
64 static int romfs_mmap(struct file *file, struct vm_area_struct *vma) argument
69 static unsigned romfs_mmap_capabilities(struct file *file) argument
71 struct mtd_info *mtd = file_inode(file)->i_sb->s_mtd;
/linux-master/tools/testing/selftests/damon/
H A Ddebugfs_rm_non_contexts.sh6 # Test putting non-ctx files/dirs to rm_contexts file
11 for file in "$DBGFS/"*
/linux-master/net/wireless/
H A Ddebugfs.c15 static ssize_t name## _read(struct file *file, char __user *userbuf, \
18 struct wiphy *wiphy = file->private_data; \
63 static ssize_t ht40allow_map_read(struct file *file, argument
67 struct wiphy *wiphy = file->private_data;
117 struct file *file,
122 struct file *file; member in struct:debugfs_read_work
148 wiphy_locked_debugfs_read(struct wiphy *wiphy, struct file *file, char *buf, size_t bufsize, char __user *userbuf, size_t count, loff_t *ppos, ssize_t (*handler)(struct wiphy *wiphy, struct file *file, char *buf, size_t bufsize, void *data), void *data) argument
202 struct file *file; member in struct:debugfs_write_work
228 wiphy_locked_debugfs_write(struct wiphy *wiphy, struct file *file, char *buf, size_t bufsize, const char __user *userbuf, size_t count, ssize_t (*handler)(struct wiphy *wiphy, struct file *file, char *buf, size_t count, void *data), void *data) argument
[all...]
/linux-master/kernel/bpf/
H A Dmap_in_map.h9 struct file;
14 void *bpf_map_fd_get_ptr(struct bpf_map *map, struct file *map_file,
/linux-master/tools/objtool/
H A Dobjtool.c22 static struct objtool_file file; variable in typeref:struct:objtool_file
40 perror("failed to create backup file");
46 perror("failed to open orig file");
86 WARN("won't handle more than one file at a time");
89 return &file;
93 file.elf = elf_open_read(objname, O_RDWR);
94 if (!file.elf)
98 WARN("can't create backup file");
102 hash_init(file.insn_hash);
103 INIT_LIST_HEAD(&file
[all...]
/linux-master/scripts/kconfig/
H A Dutil.c27 struct file { struct
32 /* file already present in list? If not add it */
35 struct file *file; local
39 hash_for_each_possible(file_hashtable, file, node, hash)
40 if (!strcmp(name, file->name))
41 return file->name;
44 file = xmalloc(sizeof(*file) + len + 1);
45 memset(file,
[all...]
/linux-master/tools/testing/selftests/exec/
H A Dnon-regular.c14 /* Remove a file, ignoring the result if it didn't exist. */
36 FIXTURE(file) {
41 FIXTURE_VARIANT(file)
47 FIXTURE_DATA(file) *self,
48 const FIXTURE_VARIANT(file) *variant);
53 FIXTURE_DATA(file) *self,
54 const FIXTURE_VARIANT(file) *variant)
73 FIXTURE_VARIANT_ADD(file, S_IFLNK)
81 FIXTURE_DATA(file) *self,
82 const FIXTURE_VARIANT(file) *varian
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_bpf_sk_storage_helpers.c29 struct file *file = ctx->file; local
33 if (!task || !file)
36 sock = bpf_sock_from_file(file);
H A Dbpf_iter_task_file.c18 struct file *file = ctx->file; local
21 if (task == (void *)0 || file == (void *)0)
26 BPF_SEQ_PRINTF(seq, " tgid gid fd file\n");
38 (long)file->f_op);
/linux-master/security/tomoyo/
H A Dsecurityfs_if.c31 * @file: Pointer to "struct file".
41 static ssize_t tomoyo_write_self(struct file *file, const char __user *buf, argument
93 * @file: Pointer to "struct file".
100 static ssize_t tomoyo_read_self(struct file *file, char __user *buf, argument
128 * @file: Pointer to "struct file"
132 tomoyo_open(struct inode *inode, struct file *file) argument
146 tomoyo_release(struct inode *inode, struct file *file) argument
161 tomoyo_poll(struct file *file, poll_table *wait) argument
176 tomoyo_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
192 tomoyo_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lag/
H A Ddebugfs.c19 static int type_show(struct seq_file *file, void *priv) argument
21 struct mlx5_core_dev *dev = file->private;
32 seq_printf(file, "%s\n", mode);
37 static int port_sel_mode_show(struct seq_file *file, void *priv) argument
39 struct mlx5_core_dev *dev = file->private;
54 seq_printf(file, "%s\n", mode);
58 static int state_show(struct seq_file *file, void *priv) argument
60 struct mlx5_core_dev *dev = file->private;
68 seq_printf(file, "%s\n", active ? "active" : "disabled");
72 static int flags_show(struct seq_file *file, voi argument
101 mapping_show(struct seq_file *file, void *priv) argument
139 members_show(struct seq_file *file, void *priv) argument
[all...]
/linux-master/fs/
H A Danon_inodes.c13 #include <linux/file.h>
78 static struct file *__anon_inode_getfile(const char *name,
85 struct file *file; local
93 file = ERR_CAST(inode);
99 file = ERR_PTR(-ENODEV);
109 file = alloc_file_pseudo(inode, anon_inode_mnt, name,
111 if (IS_ERR(file))
114 file->f_mapping = inode->i_mapping;
116 file
195 struct file *file; local
[all...]
/linux-master/fs/proc/
H A Dinode.c19 #include <linux/file.h>
226 * "struct file" needs to be available at the right moment.
235 struct file *file; variable in typeref:struct:file
241 file = pdeo->file;
242 pde->proc_ops->proc_release(file_inode(file), file); variable
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) argument
314 proc_reg_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
328 pde_write(struct proc_dir_entry *pde, struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
338 proc_reg_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
352 pde_poll(struct proc_dir_entry *pde, struct file *file, struct poll_table_struct *pts) argument
362 proc_reg_poll(struct file *file, struct poll_table_struct *pts) argument
376 pde_ioctl(struct proc_dir_entry *pde, struct file *file, unsigned int cmd, unsigned long arg) argument
386 proc_reg_unlocked_ioctl(struct file *file, unsigned int cmd, unsigned long arg) argument
401 pde_compat_ioctl(struct proc_dir_entry *pde, struct file *file, unsigned int cmd, unsigned long arg) argument
411 proc_reg_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) argument
425 pde_mmap(struct proc_dir_entry *pde, struct file *file, struct vm_area_struct *vma) argument
435 proc_reg_mmap(struct file *file, struct vm_area_struct *vma) argument
450 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) argument
467 proc_reg_get_unmapped_area(struct file *file, unsigned long orig_addr, unsigned long len, unsigned long pgoff, unsigned long flags) argument
483 proc_reg_open(struct inode *inode, struct file *file) argument
546 proc_reg_release(struct inode *inode, struct file *file) argument
[all...]
/linux-master/arch/loongarch/include/asm/
H A Dbug.h9 #define _BUGVERBOSE_LOCATION(file, line)
11 #define __BUGVERBOSE_LOCATION(file, line) \
13 10002: .string file; \
18 #define _BUGVERBOSE_LOCATION(file, line) __BUGVERBOSE_LOCATION(file, line)
/linux-master/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) argument
20 struct ceph_inode_info *ci = ceph_inode(file_inode(file));
24 err = ceph_do_getattr(file_inode(file), CEPH_STAT_CAP_LAYOUT, false);
65 static long ceph_ioctl_set_layout(struct file *file, void __user *arg) argument
67 struct inode *inode = file_inode(file);
71 struct ceph_inode_info *ci = ceph_inode(file_inode(file));
79 err = ceph_do_getattr(file_inode(file), CEPH_STAT_CAP_LAYOU
137 ceph_ioctl_set_layout_policy(struct file *file, void __user *arg) argument
180 ceph_ioctl_get_dataloc(struct file *file, void __user *arg) argument
242 ceph_ioctl_lazyio(struct file *file) argument
267 ceph_ioctl_syncio(struct file *file) argument
275 vet_mds_for_fscrypt(struct file *file) argument
294 ceph_set_encryption_policy(struct file *file, unsigned long arg) argument
359 ceph_ioctl(struct file *file, unsigned int cmd, unsigned long arg) argument
[all...]
/linux-master/tools/perf/util/
H A Ddata.c51 struct perf_data_file *file = &files[i]; local
53 ret = asprintf(&file->path, "%s/data.%d", data->path, i);
60 ret = open(file->path, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR);
75 file->fd = ret;
97 * Directory containing a single regular perf data file which is already
115 struct perf_data_file *file; local
128 file = realloc(files, (nr + 1) * sizeof(*files));
129 if (!file)
132 files = file;
133 file
169 struct perf_data_file *file = &data->dir.files[i]; local
409 perf_data_file__write(struct perf_data_file *file, void *buf, size_t size) argument
473 struct perf_data_file *file = &data->dir.files[i]; local
555 FILE *file; local
[all...]

Completed in 198 milliseconds

1234567891011>>