Home
last modified time | relevance | path

Searched full:file (Results 1 – 25 of 7950) sorted by relevance

12345678910>>...318

/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...]
/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...]
/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 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...]
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 Danon_inodes.c13 #include <linux/file.h>
33 * User space expects anonymous inodes to have no file type in st_mode.
134 static struct file *__anon_inode_getfile(const char *name, in __anon_inode_getfile()
141 struct file *file; in __anon_inode_getfile() local
150 file = ERR_CAST(inode); in __anon_inode_getfile()
156 file = ERR_PTR(-ENODEV); in __anon_inode_getfile()
166 file = alloc_file_pseudo(inode, anon_inode_mnt, name, in __anon_inode_getfile()
168 if (IS_ERR(file)) in __anon_inode_getfile()
171 file in __anon_inode_getfile()
230 struct file *file; anon_inode_getfile_fmode() local
284 struct file *file; __anon_inode_getfd() local
[all...]
H A Dkernel_read_file.c9 * kernel_read_file() - read file contents into a kernel buffer
11 * @file: file to read from
18 * @file_size: if non-NULL, the full size of @file will be
21 * file contents being read (for LSMs to examine)
24 * (i.e. the caller must be expecting to read partial file contents
26 * will be able to determine when the entire file was read by
28 * file, though, since it is possible that the contents might
35 ssize_t kernel_read_file(struct file *file, loff_ argument
131 struct file *file; kernel_read_file_from_path() local
152 struct file *file; kernel_read_file_from_path_initns() local
[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/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/rust/kernel/fs/
H A Dfile.rs5 //! Files and file descriptors.
8 //! [`include/linux/file.h`](srctree/include/linux/file.h)
18 /// Flags associated with a [`File`].
20 /// File is opened in append mode.
29 /// File was created if it didn't already exist.
32 /// Direct I/O is enabled for this file.
35 /// File must be a directory.
41 /// Ensure that this file is created with the `open(2)` call.
44 /// Large file siz
179 pub struct File { global() struct
185 unsafe impl Send for File {} global() implementation
189 unsafe impl Sync for File {} global() implementation
193 unsafe impl AlwaysRefCounted for File { global() implementation
201 dec_ref(obj: ptr::NonNull<File>) dec_ref() argument
299 assume_no_fdget_pos(me: ARef<LocalFile>) -> ARef<File> assume_no_fdget_pos() argument
310 as_ptr(&self) -> *mut bindings::file as_ptr() argument
340 impl File { global() implementation
350 from_raw_file<'a>(ptr: *const bindings::file) -> &'a File from_raw_file() argument
360 impl core::ops::Deref for File { global() implementation
421 fd_install(self, file: ARef<File>) fd_install() argument
[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/scsi/fnic/
H A Dfnic_debugfs.c38 * file system. If not already created, this routine will create the
68 * When Debugfs is configured this routine removes debugfs file system
85 * or fc_trace_clear debugfs file
86 * @filp: The file pointer to read from.
89 * @ppos: The position in the file to start reading from.
95 * It will start reading file at @ppos and
101 static ssize_t fnic_trace_ctrl_read(struct file *filp, in fnic_trace_ctrl_read()
117 pr_err("fnic: Cannot read to any debugfs file\n"); in fnic_trace_ctrl_read()
125 * fc_trace_clear debugfs file
126 * @filp: The file pointe
198 fnic_trace_debugfs_open(struct inode * inode,struct file * file) fnic_trace_debugfs_open() argument
248 fnic_trace_debugfs_lseek(struct file * file,loff_t offset,int howto) fnic_trace_debugfs_lseek() argument
273 fnic_trace_debugfs_read(struct file * file,char __user * ubuf,size_t nbytes,loff_t * pos) fnic_trace_debugfs_read() argument
300 fnic_trace_debugfs_release(struct inode * inode,struct file * file) fnic_trace_debugfs_release() argument
435 fnic_reset_stats_open(struct inode * inode,struct file * file) fnic_reset_stats_open() argument
465 fnic_reset_stats_read(struct file * file,char __user * ubuf,size_t cnt,loff_t * ppos) fnic_reset_stats_read() argument
493 fnic_reset_stats_write(struct file * file,const char __user * ubuf,size_t cnt,loff_t * ppos) fnic_reset_stats_write() argument
558 fnic_reset_stats_release(struct inode * inode,struct file * file) fnic_reset_stats_release() argument
579 fnic_stats_debugfs_open(struct inode * inode,struct file * file) fnic_stats_debugfs_open() argument
622 fnic_stats_debugfs_read(struct file * file,char __user * ubuf,size_t nbytes,loff_t * pos) fnic_stats_debugfs_read() argument
649 fnic_stats_debugfs_release(struct inode * inode,struct file * file) fnic_stats_debugfs_release() argument
[all...]
/linux/rust/kernel/
H A Dmiscdevice.rs16 fs::File,
120 /// The returned pointer will be stored as the private data for the file.
121 fn open(_file: &File, _misc: &MiscDeviceRegistration<Self>) -> Result<Self::Ptr>; in open() argument
124 fn release(device: Self::Ptr, _file: &File) { in release() argument
131 /// `file`. The function is a callback that is part of the VMA initializer. The kernel will do
138 _file: &File, in mmap() argument
151 _file: &File, in ioctl() argument
168 _file: &File, in compat_ioctl() argument
179 _file: &File, in show_fdinfo() argument
185 /// A vtable for the file operation
212 let file = unsafe { File::from_raw_file(raw_file) }; open() localVariable
253 mmap( file: *mut bindings::file, vma: *mut bindings::vm_area_struct, ) -> c_int mmap() argument
267 let file = unsafe { File::from_raw_file(file) }; mmap() localVariable
278 ioctl(file: *mut bindings::file, cmd: c_uint, arg: c_ulong) -> c_long ioctl() argument
287 let file = unsafe { File::from_raw_file(file) }; ioctl() localVariable
300 compat_ioctl( file: *mut bindings::file, cmd: c_uint, arg: c_ulong, ) -> c_long compat_ioctl() argument
312 let file = unsafe { File::from_raw_file(file) }; compat_ioctl() localVariable
324 show_fdinfo(seq_file: *mut bindings::seq_file, file: *mut bindings::file) show_fdinfo() argument
332 let file = unsafe { File::from_raw_file(file) }; show_fdinfo() localVariable
[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/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/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/debugfs/
H A Dfile.c3 * file.c - part of debugfs, a tiny little debug file system
29 static ssize_t default_read_file(struct file *file, char __user *buf, in default_read_file() argument
35 static ssize_t default_write_file(struct file *file, const char __user *buf, in default_write_file() argument
50 void *debugfs_get_aux(const struct file *file) in debugfs_get_aux() argument
52 return DEBUGFS_I(file_inode(file))->aux; in debugfs_get_aux()
69 * debugfs_file_get() on a dentry that isn't even a file, le in __debugfs_file_get()
206 debugfs_enter_cancellation(struct file * file,struct debugfs_cancellation * cancellation) debugfs_enter_cancellation() argument
242 debugfs_leave_cancellation(struct file * file,struct debugfs_cancellation * cancellation) debugfs_leave_cancellation() argument
414 full_proxy_release(struct inode * inode,struct file * file) full_proxy_release() argument
514 debugfs_attr_read(struct file * file,char __user * buf,size_t len,loff_t * ppos) debugfs_attr_read() argument
529 debugfs_attr_write_xsigned(struct file * file,const char __user * buf,size_t len,loff_t * ppos,bool is_signed) debugfs_attr_write_xsigned() argument
546 debugfs_attr_write(struct file * file,const char __user * buf,size_t len,loff_t * ppos) debugfs_attr_write() argument
553 debugfs_attr_write_signed(struct file * file,const char __user * buf,size_t len,loff_t * ppos) debugfs_attr_write_signed() argument
931 debugfs_read_file_bool(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) debugfs_read_file_bool() argument
954 debugfs_write_file_bool(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) debugfs_write_file_bool() argument
1016 debugfs_read_file_str(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) debugfs_read_file_str() argument
1052 debugfs_write_file_str(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) debugfs_write_file_str() argument
1143 read_file_blob(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) read_file_blob() argument
1159 write_file_blob(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) write_file_blob() argument
1233 u32_array_open(struct inode * inode,struct file * file) u32_array_open() argument
1256 u32_array_read(struct file * file,char __user * buf,size_t len,loff_t * ppos) u32_array_read() argument
1265 u32_array_release(struct inode * inode,struct file * file) u32_array_release() argument
[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/
H A Ddrm_file.c37 #include <linux/file.h>
72 * DOC: file operations
74 * Drivers must define the file operations structure that forms the DRM
87 * userspace through the file descriptor. They are used to send vblank event and
97 * No other file operations are supported by the DRM userspace API. Overall the
122 * drm_file_alloc - allocate file context
125 * This allocates a new DRM file context. It is not linked into any context and
136 struct drm_file *file; in drm_file_alloc() local
139 file = kzalloc(sizeof(*file), GFP_KERNE in drm_file_alloc()
233 drm_file_free(struct drm_file * file) drm_file_free() argument
915 drm_show_memory_stats(struct drm_printer * p,struct drm_file * file) drm_show_memory_stats() argument
976 struct drm_file *file = f->private_data; drm_show_fdinfo() local
1061 struct file *file; mock_drm_getfile() local
[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/Documentation/ABI/testing/
H A Dsysfs-driver-ufs5 This file contains the auto-hibernate idle timer setting of a
19 Description: This file shows the device type. This is one of the UFS
23 The file is read only.
29 Description: This file shows the device class. This is one of the UFS
33 The file is read only.
39 Description: This file shows the UFS storage subclass. This is one of
43 The file is read only.
49 Description: This file shows the protocol supported by an UFS device.
54 The file is read only.
60 Description: This file show
[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/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...]

12345678910>>...318