Home
last modified time | relevance | path

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

12345678910>>...343

/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, void *priv, struct v4l2_format *f);
27 int vidioc_s_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f);
28 int vidioc_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
29 int vidioc_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
30 int vidioc_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
31 int vivid_vid_cap_g_selection(struct file *file, void *priv, struct v4l2_selection *sel);
[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, void *priv, struct v4l2_format *f);
20 int vidioc_s_fmt_vid_out_mplane(struct file *file, void *priv, struct v4l2_format *f);
21 int vidioc_g_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
22 int vidioc_try_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
23 int vidioc_s_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
24 int vivid_vid_out_g_selection(struct file *file, void *priv, struct v4l2_selection *sel);
[all …]
/linux/include/media/
H A Dv4l2-ioctl.h296 int (*vidioc_querycap)(struct file *file, void *priv,
300 int (*vidioc_enum_fmt_vid_cap)(struct file *file, void *priv,
302 int (*vidioc_enum_fmt_vid_overlay)(struct file *file, void *priv,
304 int (*vidioc_enum_fmt_vid_out)(struct file *file, void *priv,
306 int (*vidioc_enum_fmt_sdr_cap)(struct file *file, void *priv,
308 int (*vidioc_enum_fmt_sdr_out)(struct file *file, void *priv,
310 int (*vidioc_enum_fmt_meta_cap)(struct file *file, void *priv,
312 int (*vidioc_enum_fmt_meta_out)(struct file *file, void *priv,
316 int (*vidioc_g_fmt_vid_cap)(struct file *file, void *priv,
318 int (*vidioc_g_fmt_vid_overlay)(struct file *file, void *priv,
[all …]
/linux/fs/
H A Dfile_table.c11 #include <linux/file.h>
42 /* SLAB cache for file structures */
50 /* Container for backing file with optional user path */
52 struct file file; member
62 #define backing_file(f) container_of(f, struct backing_file, file)
64 const struct path *backing_file_user_path(const struct file *f) in backing_file_user_path()
70 void backing_file_set_user_path(struct file *f, const struct path *path) in backing_file_set_user_path()
77 void *backing_file_security(const struct file *f) in backing_file_security()
82 void backing_file_set_security(struct file *f, void *security) in backing_file_set_security()
90 security_backing_file_free(&ff->file); in backing_file_free()
[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 descriptor table in alloc_fdtable()
[all …]
H A Dread_write.c12 #include <linux/file.h>
39 static inline bool unsigned_offsets(struct file *file) in unsigned_offsets() argument
41 return file->f_op->fop_flags & FOP_UNSIGNED_OFFSET; in unsigned_offsets()
45 * vfs_setpos_cookie - update the file offset for lseek and reset cookie
46 * @file: file structure in question
47 * @offset: file offset to seek to
48 * @maxsize: maximum file size
51 * Update the file offset to the value specified by @offset if the given
52 * offset is valid and it is not equal to the current file offset and
57 static loff_t vfs_setpos_cookie(struct file *file, loff_t offset, in vfs_setpos_cookie() argument
[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->f_mapping = inode->i_mapping; in __anon_inode_getfile()
173 file->private_data = priv; in __anon_inode_getfile()
[all …]
/linux/fs/overlayfs/
H A Dfile.c7 #include <linux/file.h>
15 #include <linux/backing-file.h>
28 static struct file *ovl_open_realfile(const struct file *file, in ovl_open_realfile() argument
32 struct inode *inode = file_inode(file); in ovl_open_realfile()
34 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, in ovl_open_realfile()
57 file, file, ovl_whatisit(inode, realinode), file->f_flags, in ovl_open_realfile()
65 static int ovl_change_flags(struct file *file, unsigned int flags) in ovl_change_flags() argument
67 struct inode *inode = file_inode(file); in ovl_change_flags()
[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->f_handle, fp, mode); in nlm_do_fopen()
101 * Lookup file info. If it doesn't exist, create a file info struct
[all …]
/linux/rust/kernel/fs/
H A Dfile.rs5 //! Files and file descriptors.
8 //! [`include/linux/file.h`](srctree/include/linux/file.h)
20 /// Primitive type representing the offset within a [`File`].
25 /// Flags associated with a [`File`].
27 /// File is opened in append mode.
36 /// File was created if it didn't already exist.
39 /// Direct I/O is enabled for this file.
42 /// File must be a directory.
48 /// Ensure that this file is created with the `open(2)` call.
51 /// Large file size enabled (`off64_t` over `off_t`).
[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.
36 struct file *file = iocb->ki_filp; in ecryptfs_read_update_atime() local
40 struct path path = ecryptfs_lower_path(file->f_path.dentry); in ecryptfs_read_update_atime()
53 * to be used only for file reads. The function to be used for directory reads
56 static ssize_t ecryptfs_splice_read_update_atime(struct file *in, loff_t *ppos, in ecryptfs_splice_read_update_atime()
121 * @file: The eCryptfs directory file
124 static int ecryptfs_readdir(struct file *file, struct dir_context *ctx) in ecryptfs_readdir() argument
127 struct file *lower_file; in ecryptfs_readdir()
128 struct inode *inode = file_inode(file); in ecryptfs_readdir()
[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 pointer to write from.
[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, let in __debugfs_file_get()
146 * debugfs_file_get - mark the beginning of file data access
150 * into the file removing functions debugfs_remove() and
152 * file data may only get freed after a successful return of any of
156 * If -%EIO is returned, the file has already been removed and thus,
[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/rust/kernel/
H A Dmiscdevice.rs16 fs::{File, Kiocb},
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
161 _file: &File, in ioctl() argument
178 _file: &File, in compat_ioctl() argument
189 _file: &File, in show_fdinfo() argument
195 /// A vtable for the file operations of a Rust miscdevice.
[all …]
/linux/drivers/infiniband/core/
H A Duser_mad.c9 * General Public License (GPL) Version 2, available from the file
81 * device special file is opened, we take a reference on the
174 static int hdr_size(struct ib_umad_file *file) in hdr_size() argument
176 return file->use_pkey_index ? sizeof(struct ib_user_mad_hdr) : in hdr_size()
180 /* caller must hold file->mutex */
181 static struct ib_mad_agent *__get_agent(struct ib_umad_file *file, int id) in __get_agent() argument
183 return file->agents_dead ? NULL : file->agent[id]; in __get_agent()
186 static int queue_packet(struct ib_umad_file *file, struct ib_mad_agent *agent, in queue_packet() argument
191 mutex_lock(&file->mutex); in queue_packet()
194 atomic_read(&file->recv_list_size) > MAX_UMAD_RECV_LIST_SIZE) in queue_packet()
[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.diags
41 if grep -q FAILURE $file || grep -q -e '-torture.*!!!' $file
43 nerrs=`grep --binary-files=text '!!!' $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), in shmem_create_from_data()
24 if (IS_ERR(file)) in shmem_create_from_data()
25 return file; in shmem_create_from_data()
27 err = shmem_write(file, 0, data, len); in shmem_create_from_data()
29 fput(file); in shmem_create_from_data()
33 return file; in shmem_create_from_data()
36 struct file *shmem_create_from_object(struct drm_i915_gem_object *obj) in shmem_create_from_object()
39 struct file *file; in shmem_create_from_object() 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_LAYOUT, false); in ceph_ioctl_set_layout()
137 static long ceph_ioctl_set_layout_policy (struct file *file, void __user *arg) in ceph_ioctl_set_layout_policy() argument
139 struct inode *inode = file_inode(file); in ceph_ioctl_set_layout_policy()
[all …]
/linux/Documentation/driver-api/media/
H A Dv4l2-fh.rst3 V4L2 File handles
6 struct v4l2_fh provides a way to easily keep file handle specific data that is
9 struct v4l2_fh is allocated in the driver's ``open()`` file operation handler.
13 :c:type:`v4l2_fh` with the :c:type:`file` by setting ``file->private_data`` to
16 Similarly, the struct v4l2_fh is freed in the driver's ``release()`` file
21 Drivers must not access ``file->private_data`` directly. They can retrieve the
22 :c:type:`v4l2_fh` associated with a :c:type:`file` by calling
23 :c:func:`file_to_v4l2_fh`. Drivers can extract their own file handle structure
37 int my_open(struct file *file)
53 v4l2_fh_add(&my_fh->fh, file);
[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_obj(*file); in drm_file_alloc()
140 if (!file) in drm_file_alloc()
[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_t offset, int whence) in proc_reg_llseek() argument
277 struct proc_dir_entry *pde = PDE(file_inode(file)); in proc_reg_llseek()
281 return pde->proc_ops->proc_lseek(file, offset, whence); in proc_reg_llseek()
283 rv = pde->proc_ops->proc_lseek(file, offset, whence); in proc_reg_llseek()
304 static ssize_t pde_read(struct proc_dir_entry *pde, struct file *file, char __user *buf, size_t cou… in pde_read() argument
[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 shows number of logical units. This is one of
[all …]
/linux/include/linux/
H A Dfs.h103 * flags in file.f_mode. Note that FMODE_READ and FMODE_WRITE must correspond
107 /* file is open for reading */
109 /* file is open for writing */
111 /* file is seekable */
113 /* file can be accessed using pread */
115 /* file can be accessed using pwrite */
117 /* File is opened for execution with sys_execve / sys_uselib */
119 /* File writes are restricted (block device specific) */
121 /* File supports atomic writes */
145 /* File is opened with O_PATH; almost nothing can be done with it */
[all …]
/linux/kernel/liveupdate/
H A Dluo_file.c9 * DOC: LUO File Descriptors
11 * LUO provides the infrastructure to preserve specific, stateful file
17 * defined lifecycle for each preserved file.
20 * Kernel modules responsible for a specific file type (e.g., memfd, vfio)
26 * compatible with a given 'struct file'.
27 * - preserve(): The heavyweight operation that saves the file's state and
36 * the file anymore.
39 * - retrieve(): Reconstructs the file in the new kernel from the preserved
42 * succesul finish call, LUO gives up ownership to this file.
44 * File Preservation Lifecycle happy path:
[all …]

12345678910>>...343