/linux-master/drivers/parisc/ |
H A D | eisa_eeprom.c | 20 static loff_t eisa_eeprom_llseek(struct file *file, loff_t offset, int origin) argument 22 return fixed_size_llseek(file, offset, origin, HPEE_MAX_LENGTH); 25 static ssize_t eisa_eeprom_read(struct file * file, argument 52 static int eisa_eeprom_open(struct inode *inode, struct file *file) argument 54 if (file->f_mode & FMODE_WRITE) 60 static int eisa_eeprom_release(struct inode *inode, struct file *file) argument [all...] |
/linux-master/arch/mips/tools/ |
H A D | elf-entry.c | 36 FILE *file; local 43 die("Usage: elf-entry <elf-file>\n"); 45 file = fopen(argv[1], "r"); 46 if (!file) { 47 perror("Unable to open input file"); 51 nread = fread(&hdr, 1, sizeof(hdr), file); 53 perror("Unable to read input file"); 54 fclose(file); 59 fclose(file); 73 fclose(file); [all...] |
/linux-master/drivers/media/usb/uvc/ |
H A D | uvc_debugfs.c | 27 static int uvc_debugfs_stats_open(struct inode *inode, struct file *file) argument 38 file->private_data = buf; 42 static ssize_t uvc_debugfs_stats_read(struct file *file, char __user *user_buf, argument 45 struct uvc_debugfs_buffer *buf = file->private_data; 51 static int uvc_debugfs_stats_release(struct inode *inode, struct file *file) argument 53 kfree(file->private_data); 54 file [all...] |
/linux-master/tools/lib/api/fs/ |
H A D | tracing_path.c | 70 char *file; local 72 if (asprintf(&file, "%s/%s", tracing_path_mount(), name) < 0) 75 return file; 78 void put_tracing_file(char *file) argument 80 free(file); 85 char *file; local 87 if (asprintf(&file, "%s/events/%s", tracing_path_mount(), name) < 0) 90 return file; 93 void put_events_file(char *file) argument 95 free(file); [all...] |
/linux-master/include/linux/ |
H A D | filelock.h | 12 #define FL_LEASE 32 /* lease held on this file */ 17 #define FL_OFDLCK 1024 /* lock is "owned" by struct file */ 76 * struct file_lock represents a generic "file lock". It's used to represent 109 struct file *flc_file; 150 int fcntl_getlk(struct file *, unsigned int, struct flock *); 151 int fcntl_setlk(unsigned int, struct file *, unsigned int, 155 int fcntl_getlk64(struct file *, unsigned int, struct flock64 *); 156 int fcntl_setlk64(unsigned int, struct file *, unsigned int, 160 int fcntl_setlease(unsigned int fd, struct file *filp, int arg); 161 int fcntl_getlease(struct file *fil 229 fcntl_getlk(struct file *file, unsigned int cmd, struct flock __user *user) argument 235 fcntl_setlk(unsigned int fd, struct file *file, unsigned int cmd, struct flock __user *user) argument 242 fcntl_getlk64(struct file *file, unsigned int cmd, struct flock64 *user) argument 248 fcntl_setlk64(unsigned int fd, struct file *file, unsigned int cmd, struct flock64 *user) argument [all...] |
H A D | fs.h | 108 * flags in file.f_mode. Note that FMODE_READ and FMODE_WRITE must correspond 112 /* file is open for reading */ 114 /* file is open for writing */ 116 /* file is seekable */ 118 /* file can be accessed using pread */ 120 /* file can be accessed using pwrite */ 263 struct file *ia_file; 365 struct file *ki_filp; 397 int (*read_folio)(struct file *, struct folio *); 407 int (*write_begin)(struct file *, struc 991 struct file { struct 1089 file_dentry(const struct file *file) argument 1721 file_write_started(const struct file *file) argument 1736 file_write_not_started(const struct file *file) argument 2101 call_read_iter(struct file *file, struct kiocb *kio, struct iov_iter *iter) argument 2107 call_write_iter(struct file *file, struct kiocb *kio, struct iov_iter *iter) argument 2113 call_mmap(struct file *file, struct vm_area_struct *vma) argument 2456 file_accessed(struct file *file) argument 2618 file_mnt_idmap(const struct file *file) argument 2683 file_clone_open(struct file *file) argument 2700 finish_open_simple(struct file *file, int error) argument 2769 file_write_and_wait(struct file *file) argument 2821 file_permission(struct file *file, int mask) argument 2851 file_start_write(struct file *file) argument 2858 file_start_write_trylock(struct file *file) argument 2871 file_end_write(struct file *file) argument 2939 deny_write_access(struct file *file) argument 2948 allow_write_access(struct file *file) argument 3395 iocb_flags(struct file *file) argument 3572 dir_emit_dot(struct file *file, struct dir_context *ctx) argument 3577 dir_emit_dotdot(struct file *file, struct dir_context *ctx) argument 3582 dir_emit_dots(struct file *file, struct dir_context *ctx) argument [all...] |
H A D | fsnotify.h | 91 * is on a file/dentry. 98 static inline int fsnotify_file(struct file *file, __u32 mask) argument 102 if (file->f_mode & FMODE_NONOTIFY) 105 path = &file->f_path; 111 * fsnotify_file_area_perm - permission hook before access to file range 113 static inline int fsnotify_file_area_perm(struct file *file, int perm_mask, argument 120 * (e.g. by HSM filling a file on access), so sb freeze protection 123 lockdep_assert_once(file_write_not_started(file)); 134 fsnotify_file_perm(struct file *file, int perm_mask) argument 142 fsnotify_open_perm(struct file *file) argument 156 fsnotify_file_area_perm(struct file *file, int perm_mask, const loff_t *ppos, size_t count) argument 162 fsnotify_file_perm(struct file *file, int perm_mask) argument 167 fsnotify_open_perm(struct file *file) argument 353 fsnotify_access(struct file *file) argument 361 fsnotify_modify(struct file *file) argument 369 fsnotify_open(struct file *file) argument 382 fsnotify_close(struct file *file) argument [all...] |
/linux-master/scripts/ |
H A D | leaking_addresses.pl | 8 # - Walks directory tree and parses each file (for each directory in @DIRS). 39 # Timer for parsing each file, in seconds. 50 my $output_raw = ""; # Write raw results to file. 51 my $input_raw = ""; # Read raw results from file instead of scanning. 55 my $kallsyms_file = ""; # Kernel symbols file. 56 my $kernel_config_file = ""; # Kernel configuration file. 95 -o, --output-raw=<file> Save results for future processing. 96 -i, --input-raw=<file> Read results from file instead of scanning. 101 --kernel-config-file [all...] |
H A D | checkincludes.pl | 43 foreach my $file (@ARGV) { 44 open(my $f, '<', $file) 45 or die "Cannot open $file: $!.\n"; 62 print "$file: $filename is included more than once.\n"; 69 open($f, '>', $file) 70 or die("Cannot write to $file: $!"); 91 print "$file: removed $dups duplicate includes\n";
|
/linux-master/arch/um/drivers/ |
H A D | hostaudio_kern.c | 68 /* /dev/dsp file operations */ 70 static ssize_t hostaudio_read(struct file *file, char __user *buffer, argument 73 struct hostaudio_state *state = file->private_data; 97 static ssize_t hostaudio_write(struct file *file, const char __user *buffer, argument 100 struct hostaudio_state *state = file->private_data; 122 static __poll_t hostaudio_poll(struct file *file, argument 132 static long hostaudio_ioctl(struct file *fil argument 175 hostaudio_open(struct inode *inode, struct file *file) argument 211 hostaudio_release(struct inode *inode, struct file *file) argument 226 hostmixer_ioctl_mixdev(struct file *file, unsigned int cmd, unsigned long arg) argument 238 hostmixer_open_mixdev(struct inode *inode, struct file *file) argument 276 hostmixer_release(struct inode *inode, struct file *file) argument [all...] |
/linux-master/virt/kvm/ |
H A D | vfio.c | 10 #include <linux/file.h> 26 struct file *file; member in struct:kvm_vfio_file 38 static void kvm_vfio_file_set_kvm(struct file *file, struct kvm *kvm) argument 40 void (*fn)(struct file *file, struct kvm *kvm); 46 fn(file, kvm); 51 static bool kvm_vfio_file_enforced_coherent(struct file *file) argument 67 kvm_vfio_file_is_valid(struct file *file) argument 84 kvm_vfio_file_iommu_group(struct file *file) argument [all...] |
/linux-master/tools/testing/selftests/cpufreq/ |
H A D | cpufreq.sh | 52 for file in $files; do 53 if [ -f $1/$file ]; then 54 printf "$file:" 55 cat $1/$file 58 read_cpufreq_files_in_dir "$1/$file" 84 for file in $files; do 85 if [ -f $1/$file ]; then 86 # file is writable ? 87 local wfile=$(ls -l $1/$file | awk '$1 ~ /^.*w.*/ { print $NF; }') 90 # scaling_setspeed is a special file an [all...] |
/linux-master/fs/ |
H A D | eventfd.c | 9 #include <linux/file.h> 109 static int eventfd_release(struct inode *inode, struct file *file) argument 111 struct eventfd_ctx *ctx = file->private_data; 118 static __poll_t eventfd_poll(struct file *file, poll_table *wait) argument 120 struct eventfd_ctx *ctx = file->private_data; 124 poll_wait(file, &ctx->wqh, wait); 216 struct file *file local 247 eventfd_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument 325 struct file *file; local 369 eventfd_ctx_fileget(struct file *file) argument 385 struct file *file; local [all...] |
H A D | internal.h | 76 int mnt_get_write_access_file(struct file *file); 77 void mnt_put_write_access_file(struct file *file); 96 struct file *alloc_empty_file(int flags, const struct cred *cred); 97 struct file *alloc_empty_file_noaccount(int flags, const struct cred *cred); 98 struct file *alloc_empty_backing_file(int flags, const struct cred *cred); 100 static inline void file_put_write_access(struct file *file) argument 102 put_write_access(file 108 put_file_access(struct file *file) argument [all...] |
/linux-master/drivers/scsi/cxlflash/ |
H A D | backend.h | 40 struct file * (*get_fd)(void *ctx_cookie, struct file_operations *fops, 42 void * (*fops_get_context)(struct file *file); 44 int (*fd_mmap)(struct file *file, struct vm_area_struct *vm); 45 int (*fd_release)(struct inode *inode, struct file *file);
|
/linux-master/drivers/char/tpm/ |
H A D | tpmrm-dev.c | 13 static int tpmrm_open(struct inode *inode, struct file *file) argument 30 tpm_common_open(file, chip, &priv->priv, &priv->space); 35 static int tpmrm_release(struct inode *inode, struct file *file) argument 37 struct file_priv *fpriv = file->private_data; 40 tpm_common_release(file, fpriv);
|
/linux-master/arch/sh/mm/ |
H A D | cache-debugfs.c | 6 * This file is subject to the terms and conditions of the GNU General Public 7 * License. See the file "COPYING" in the main directory of this archive 25 static int cache_debugfs_show(struct seq_file *file, void *iter) argument 27 unsigned int cache_type = (unsigned int)file->private; 43 seq_printf(file, "disabled\n"); 70 seq_printf(file, "-----------------------------------------\n"); 71 seq_printf(file, "Way %d\n", way); 72 seq_printf(file, "-----------------------------------------\n"); 84 seq_printf(file, "%3d: %c 0x%lx\n",
|
/linux-master/drivers/gpu/drm/i915/gt/ |
H A D | intel_gt_debugfs.h | 9 #include <linux/file.h> 23 static int __name ## _open(struct inode *inode, struct file *file) \ 25 return single_open(file, __name ## _show, inode->i_private); \ 30 static int __name ## _open(struct inode *inode, struct file *file) \ 32 return single_open_size(file, __name ## _show, inode->i_private, \
|
/linux-master/fs/xfs/ |
H A D | xfs_ioctl.h | 24 struct file *parfilp, 29 struct file *parfilp, 32 int xfs_ioc_attrmulti_one(struct file *parfilp, struct inode *inode, 41 struct file *parfilp, 58 struct file *filp, 64 struct file *file,
|
/linux-master/drivers/crypto/caam/ |
H A D | dpseci-debugfs.c | 9 static int dpseci_dbg_fqs_show(struct seq_file *file, void *offset) argument 11 struct dpaa2_caam_priv *priv = file->private; 15 seq_printf(file, "FQ stats for %s:\n", dev_name(priv->dev)); 16 seq_printf(file, "%s%16s%16s\n", 27 seq_printf(file, "%5d%16u%16u\n", fqid, fcnt, bcnt); 30 seq_printf(file, "%s%16s%16s\n", 41 seq_printf(file, "%5d%16u%16u\n", fqid, fcnt, bcnt);
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | bpf_iter_task_vmas.c | 31 struct file *file; local 37 file = vma->vm_file; 49 if (file) { 50 __u32 dev = file->f_inode->i_sb->s_dev; 52 bpf_d_path(&file->f_path, d_path_buf, D_PATH_BUF_SIZE); 56 file->f_inode->i_ino);
|
H A D | test_module_attach.c | 58 struct file *file, struct kobject *kobj, 69 struct file *file, struct kobject *kobj, 81 struct file *file, struct kobject *kobj, 91 int BPF_PROG(handle_fexit_ret, int arg, struct file *ret) 106 struct file *file, struct kobject *kobj, 57 BPF_PROG(handle_fentry, struct file *file, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len) argument 68 BPF_PROG(handle_fentry_manual, struct file *file, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len) argument 80 BPF_PROG(handle_fexit, struct file *file, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len, int ret) argument 105 BPF_PROG(handle_fmod_ret, struct file *file, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len) argument
|
/linux-master/drivers/media/pci/cx23885/ |
H A D | cx23885-ioctl.c | 14 int cx23885_g_chip_info(struct file *file, void *fh, argument 17 struct cx23885_dev *dev = video_drvdata(file); 50 int cx23885_g_register(struct file *file, void *fh, argument 53 struct cx23885_dev *dev = video_drvdata(file); 82 int cx23885_s_register(struct file *file, void *fh, argument 85 struct cx23885_dev *dev = video_drvdata(file);
|
/linux-master/drivers/gpu/drm/ |
H A D | drm_file.c | 36 #include <linux/file.h> 78 * DOC: file operations 80 * Drivers must define the file operations structure that forms the DRM 93 * userspace through the file descriptor. They are used to send vblank event and 103 * No other file operations are supported by the DRM userspace API. Overall the 129 * drm_file_alloc - allocate file context 132 * This allocates a new DRM file context. It is not linked into any context and 143 struct drm_file *file; local 146 file = kzalloc(sizeof(*file), GFP_KERNE 232 drm_file_free(struct drm_file *file) argument 897 drm_show_memory_stats(struct drm_printer *p, struct drm_file *file) argument 959 struct drm_file *file = f->private_data; local 997 struct file *file; local [all...] |
/linux-master/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_debugfs.h | 2 * This file is part of the Chelsio T4 Ethernet driver for Linux. 8 * General Public License (GPL) Version 2, available from the file 60 struct seq_tab *seq_open_tab(struct file *f, unsigned int rows, 68 int mem_open(struct inode *inode, struct file *file);
|