/kernel/linux/linux-5.10/drivers/media/test-drivers/vivid/ |
D | vivid-vid-cap.h | 20 int vivid_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); 21 int vivid_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); 22 int vivid_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); 23 int vidioc_g_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f); 24 int vidioc_try_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f); 25 int vidioc_s_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f); 26 int vidioc_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); 27 int vidioc_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); 28 int vidioc_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); 29 int vivid_vid_cap_g_selection(struct file *file, void *priv, struct v4l2_selection *sel); [all …]
|
D | vivid-vid-out.h | 15 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 …]
|
/kernel/linux/linux-5.10/include/media/ |
D | v4l2-ioctl.h | 300 int (*vidioc_querycap)(struct file *file, void *fh, 304 int (*vidioc_enum_fmt_vid_cap)(struct file *file, void *fh, 306 int (*vidioc_enum_fmt_vid_overlay)(struct file *file, void *fh, 308 int (*vidioc_enum_fmt_vid_out)(struct file *file, void *fh, 310 int (*vidioc_enum_fmt_sdr_cap)(struct file *file, void *fh, 312 int (*vidioc_enum_fmt_sdr_out)(struct file *file, void *fh, 314 int (*vidioc_enum_fmt_meta_cap)(struct file *file, void *fh, 316 int (*vidioc_enum_fmt_meta_out)(struct file *file, void *fh, 320 int (*vidioc_g_fmt_vid_cap)(struct file *file, void *fh, 322 int (*vidioc_g_fmt_vid_overlay)(struct file *file, void *fh, [all …]
|
/kernel/linux/linux-5.10/fs/overlayfs/ |
D | file.c | 7 #include <linux/file.h> 40 static struct file *ovl_open_realfile(const struct file *file, in ovl_open_realfile() argument 43 struct inode *inode = file_inode(file); in ovl_open_realfile() 44 struct file *realfile; in ovl_open_realfile() 46 int flags = file->f_flags | OVL_OPEN_FLAGS; in ovl_open_realfile() 60 realfile = open_with_fake_path(&file->f_path, flags, realinode, in ovl_open_realfile() 66 file, file, ovl_whatisit(inode, realinode), file->f_flags, in ovl_open_realfile() 74 static int ovl_change_flags(struct file *file, unsigned int flags) in ovl_change_flags() argument 76 struct inode *inode = file_inode(file); in ovl_change_flags() 82 if (WARN_ON((file->f_flags ^ flags) & ~OVL_SETFL_MASK)) in ovl_change_flags() [all …]
|
/kernel/linux/linux-5.10/fs/hmdfs/ |
D | file_local.c | 8 #include <linux/file.h> 23 int hmdfs_file_open_local(struct inode *inode, struct file *file) in hmdfs_file_open_local() argument 26 struct file *lower_file = NULL; in hmdfs_file_open_local() 38 hmdfs_get_lower_path(file->f_path.dentry, &lower_path); in hmdfs_file_open_local() 39 lower_file = dentry_open(&lower_path, file->f_flags, cred); in hmdfs_file_open_local() 46 file->private_data = gfi; in hmdfs_file_open_local() 47 if (file->f_flags & (O_RDWR | O_WRONLY)) in hmdfs_file_open_local() 54 int hmdfs_file_release_local(struct inode *inode, struct file *file) in hmdfs_file_release_local() argument 56 struct hmdfs_file_info *gfi = hmdfs_f(file); in hmdfs_file_release_local() 59 if (file->f_flags & (O_RDWR | O_WRONLY)) in hmdfs_file_release_local() [all …]
|
D | file_cloud.c | 9 #include <linux/file.h> 38 struct file *filp = iocb->ki_filp; in hmdfs_file_read_iter_cloud() 40 struct file *lower_file = NULL; in hmdfs_file_read_iter_cloud() 53 int hmdfs_file_open_cloud(struct inode *inode, struct file *file) in hmdfs_file_open_cloud() argument 58 struct file *lower_file; in hmdfs_file_open_cloud() 78 dir_path = hmdfs_get_dentry_relative_path(file->f_path.dentry); in hmdfs_file_open_cloud() 86 file->f_flags, file->f_mode); in hmdfs_file_open_cloud() 94 file->private_data = gfi; in hmdfs_file_open_cloud() 100 int hmdfs_file_release_cloud(struct inode *inode, struct file *file) in hmdfs_file_release_cloud() argument 102 struct hmdfs_file_info *gfi = hmdfs_f(file); in hmdfs_file_release_cloud() [all …]
|
/kernel/linux/linux-5.10/fs/ |
D | read_write.c | 12 #include <linux/file.h> 38 * vfs_setpos - update the file offset for lseek 39 * @file: file structure in question 40 * @offset: file offset to seek to 41 * @maxsize: maximum file size 43 * This is a low-level filesystem helper for updating the file offset to 45 * not equal to the current file offset. 49 loff_t vfs_setpos(struct file *file, loff_t offset, loff_t maxsize) in vfs_setpos() argument 51 if (offset < 0 && !unsigned_offsets(file)) in vfs_setpos() 56 if (offset != file->f_pos) { in vfs_setpos() [all …]
|
D | file_table.c | 11 #include <linux/file.h> 40 /* SLAB cache for file structures */ 47 struct file *f = container_of(head, struct file, f_u.fu_rcuhead); in file_free_rcu() 53 static inline void file_free(struct file *f) in file_free() 96 static struct file *__alloc_file(int flags, const struct cred *cred) in __alloc_file() 98 struct file *f; in __alloc_file() 124 /* Find an unused file structure and return a pointer to it. 125 * Returns an error pointer if some error happend e.g. we over file 134 struct file *alloc_empty_file(int flags, const struct cred *cred) in alloc_empty_file() 137 struct file *f; in alloc_empty_file() [all …]
|
D | file.c | 3 * linux/fs/file.c 17 #include <linux/file.h> 51 * space if any. This does not copy the file pointers. Called with the files 73 * Copy all file descriptors from the old table to the new, expanded table and 82 cpy = ofdt->max_fds * sizeof(struct file *); in copy_fdtable() 83 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable() 117 nr /= (1024 / sizeof(struct file *)); in alloc_fdtable() 119 nr *= (1024 / sizeof(struct file *)); in alloc_fdtable() 136 data = kvmalloc_array(nr, sizeof(struct file *), GFP_KERNEL_ACCOUNT); in alloc_fdtable() 163 * Expand the file descriptor table. [all …]
|
D | anon_inodes.c | 13 #include <linux/file.h> 59 * anon_inode_getfile - creates a new file instance by hooking it up to an 61 * of the file 63 * @name: [in] name of the "class" of the new file 64 * @fops: [in] file operations for the new file 65 * @priv: [in] private data for the new file (will be file's private_data) 68 * Creates a new file by hooking it on a single inode. This is useful for files 71 * hence saving memory and avoiding code duplication for the file/inode/dentry 72 * setup. Returns the newly created file* or an error pointer. 74 struct file *anon_inode_getfile(const char *name, in anon_inode_getfile() [all …]
|
D | kernel_read_file.c | 9 * 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 int kernel_read_file(struct file *file, loff_t offset, void **buf, in kernel_read_file() argument 48 if (!S_ISREG(file_inode(file)->i_mode)) in kernel_read_file() 51 ret = deny_write_access(file); in kernel_read_file() [all …]
|
/kernel/linux/linux-5.10/fs/sharefs/ |
D | file.c | 3 * fs/sharefs/file.c 14 static int sharefs_open(struct inode *inode, struct file *file) in sharefs_open() argument 17 struct file *lower_file = NULL; in sharefs_open() 21 if (d_unhashed(file->f_path.dentry)) { in sharefs_open() 26 file->private_data = in sharefs_open() 28 if (!SHAREFS_F(file)) { in sharefs_open() 33 /* open lower object and link sharefs's file struct to lower's */ in sharefs_open() 34 sharefs_get_lower_path(file->f_path.dentry, &lower_path); in sharefs_open() 35 lower_file = dentry_open(&lower_path, file->f_flags, current_cred()); in sharefs_open() 39 lower_file = sharefs_lower_file(file); in sharefs_open() [all …]
|
/kernel/linux/linux-5.10/fs/lockd/ |
D | svcsubs.c | 28 * 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 = locks_inode(file->f_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 75 * Lookup file info. If it doesn't exist, create a file info struct 76 * and open a (VFS) file for the given inode. 79 * Note that we open the file O_RDONLY even when creating write locks. 87 struct nlm_file *file; in nlm_lookup_file() local 95 /* Lock file table */ in nlm_lookup_file() 98 hlist_for_each_entry(file, &nlm_files[hash], f_list) in nlm_lookup_file() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/efivarfs/ |
D | efivarfs.sh | 56 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 …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | file.h | 14 struct file; 16 extern void fput(struct file *); 17 extern void fput_many(struct file *, unsigned int); 25 extern struct file *alloc_file_pseudo(struct inode *, struct vfsmount *, 27 extern struct file *alloc_file_clone(struct file *, int flags, 30 static inline void fput_light(struct file *file, int fput_needed) in fput_light() argument 33 fput(file); in fput_light() 37 struct file *file; member 46 fput(fd.file); in fdput() 49 extern struct file *fget(unsigned int fd); [all …]
|
D | eventpoll.h | 16 struct file; 22 struct file *get_epoll_tfile_raw_ptr(struct file *file, int tfd, unsigned long toff); 25 /* Used to initialize the epoll bits inside the "struct file" */ 26 static inline void eventpoll_init_file(struct file *file) in eventpoll_init_file() argument 28 INIT_LIST_HEAD(&file->f_ep_links); in eventpoll_init_file() 29 INIT_LIST_HEAD(&file->f_tfile_llink); in eventpoll_init_file() 33 /* Used to release the epoll bits inside the "struct file" */ 34 void eventpoll_release_file(struct file *file); 42 static inline void eventpoll_release(struct file *file) in eventpoll_release() argument 50 * because the file in on the way to be removed and nobody ( but in eventpoll_release() [all …]
|
/kernel/linux/linux-5.10/fs/ecryptfs/ |
D | file.c | 12 #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() 98 * @file: The eCryptfs directory file 101 static int ecryptfs_readdir(struct file *file, struct dir_context *ctx) in ecryptfs_readdir() argument 104 struct file *lower_file; in ecryptfs_readdir() 105 struct inode *inode = file_inode(file); in ecryptfs_readdir() 111 lower_file = ecryptfs_file_to_lower(file); in ecryptfs_readdir() 169 static int ecryptfs_mmap(struct file *file, struct vm_area_struct *vma) in ecryptfs_mmap() argument [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
D | shmem_utils.c | 13 struct file *shmem_create_from_data(const char *name, void *data, size_t len) in shmem_create_from_data() 15 struct file *file; in shmem_create_from_data() local 18 file = shmem_file_setup(name, PAGE_ALIGN(len), VM_NORESERVE); in shmem_create_from_data() 19 if (IS_ERR(file)) in shmem_create_from_data() 20 return file; in shmem_create_from_data() 22 err = shmem_write(file, 0, data, len); in shmem_create_from_data() 24 fput(file); in shmem_create_from_data() 28 return file; in shmem_create_from_data() 31 struct file *shmem_create_from_object(struct drm_i915_gem_object *obj) in shmem_create_from_object() 33 struct file *file; in shmem_create_from_object() local [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/fnic/ |
D | fnic_debugfs.c | 49 * file system. If not already created, this routine will create the 79 * When Debugfs is configured this routine removes debugfs file system 97 * or fc_trace_clear debugfs file 98 * @filp: The file pointer to read from. 101 * @ppos: The position in the file to start reading from. 107 * It will start reading file at @ppos and 113 static ssize_t fnic_trace_ctrl_read(struct file *filp, in fnic_trace_ctrl_read() 129 pr_err("fnic: Cannot read to any debugfs file\n"); in fnic_trace_ctrl_read() 137 * fc_trace_clear debugfs file 138 * @filp: The file pointer to write from. [all …]
|
/kernel/linux/linux-5.10/Documentation/ABI/testing/ |
D | sysfs-driver-ufs | 5 This file contains the auto-hibernate idle timer setting of a 18 Description: This file shows the device type. This is one of the UFS 22 The file is read only. 27 Description: This file shows the device class. This is one of the UFS 31 The file is read only. 36 Description: This file shows the UFS storage subclass. This is one of 40 The file is read only. 45 Description: This file shows the protocol supported by an UFS device. 50 The file is read only. 55 Description: This file shows number of logical units. This is one of [all …]
|
/kernel/linux/linux-5.10/fs/debugfs/ |
D | file.c | 3 * 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 const struct file_operations *debugfs_real_fops(const struct file *filp) in debugfs_real_fops() 68 * debugfs_file_get - mark the beginning of file data access 72 * into the file removing functions debugfs_remove() and 74 * file data may only get freed after a successful return of any of 78 * If -%EIO is returned, the file has already been removed and thus, 80 * it is allowed to access the file data, zero is returned. 124 * debugfs_file_put - mark the end of file data access [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
D | user_mad.c | 9 * General Public License (GPL) Version 2, available from the file 79 * device special file is opened, we take a reference on the 166 static int hdr_size(struct ib_umad_file *file) in hdr_size() argument 168 return file->use_pkey_index ? sizeof (struct ib_user_mad_hdr) : in hdr_size() 172 /* caller must hold file->mutex */ 173 static struct ib_mad_agent *__get_agent(struct ib_umad_file *file, int id) in __get_agent() argument 175 return file->agents_dead ? NULL : file->agent[id]; in __get_agent() 178 static int queue_packet(struct ib_umad_file *file, in queue_packet() argument 184 mutex_lock(&file->mutex); in queue_packet() 189 if (agent == __get_agent(file, packet->mad.hdr.id)) { in queue_packet() [all …]
|
/kernel/linux/linux-5.10/net/batman-adv/ |
D | debugfs.c | 41 * @file: file which was accessed 44 void batadv_debugfs_deprecated(struct file *file, const char *alt) in batadv_debugfs_deprecated() argument 46 struct dentry *dentry = file_dentry(file); in batadv_debugfs_deprecated() 49 pr_warn_ratelimited(DEPRECATED "%s (pid %d) Use of debugfs file \"%s\".\n%s", in batadv_debugfs_deprecated() 53 static int batadv_algorithms_open(struct inode *inode, struct file *file) in batadv_algorithms_open() argument 55 batadv_debugfs_deprecated(file, in batadv_algorithms_open() 57 return single_open(file, batadv_algo_seq_print_text, NULL); in batadv_algorithms_open() 60 static int neighbors_open(struct inode *inode, struct file *file) in neighbors_open() argument 64 batadv_debugfs_deprecated(file, in neighbors_open() 66 return single_open(file, batadv_hardif_neigh_seq_print_text, net_dev); in neighbors_open() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/rcutorture/bin/ |
D | parse-console.sh | 5 # 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 …]
|
/kernel/linux/linux-5.10/fs/proc/ |
D | inode.c | 19 #include <linux/file.h> 226 * "struct file" needs to be available at the right moment. in close_pdeo() 238 struct file *file; in close_pdeo() local 243 file = pdeo->file; in close_pdeo() 244 pde->proc_ops->proc_release(file_inode(file), file); in close_pdeo() 276 static loff_t pde_lseek(struct proc_dir_entry *pde, struct file *file, loff_t offset, int whence) in pde_lseek() argument 283 return lseek(file, offset, whence); in pde_lseek() 286 static loff_t proc_reg_llseek(struct file *file, loff_t offset, int whence) in proc_reg_llseek() argument 288 struct proc_dir_entry *pde = PDE(file_inode(file)); in proc_reg_llseek() 292 return pde_lseek(pde, file, offset, whence); in proc_reg_llseek() [all …]
|