/kernel/ |
D | acct.c | 79 struct pid_namespace *ns, struct file *); 89 struct file *file; member 110 static int check_free_space(struct bsd_acct_struct *acct, struct file *file) in check_free_space() argument 120 if (!file || !acct->needcheck) in check_free_space() 125 if (vfs_statfs(file->f_path.dentry, &sbuf)) in check_free_space() 145 if (file != acct->file) { in check_free_space() 179 static void acct_file_reopen(struct bsd_acct_struct *acct, struct file *file, in acct_file_reopen() argument 182 struct file *old_acct = NULL; in acct_file_reopen() 185 if (acct->file) { in acct_file_reopen() 186 old_acct = acct->file; in acct_file_reopen() [all …]
|
D | rcutree_trace.c | 86 static int rcudata_open(struct inode *inode, struct file *file) in rcudata_open() argument 88 return single_open(file, show_rcudata, NULL); in rcudata_open() 136 static int rcudata_csv_open(struct inode *inode, struct file *file) in rcudata_csv_open() argument 138 return single_open(file, show_rcudata_csv, NULL); in rcudata_csv_open() 183 static int rcuhier_open(struct inode *inode, struct file *file) in rcuhier_open() argument 185 return single_open(file, show_rcuhier, NULL); in rcuhier_open() 205 static int rcugp_open(struct inode *inode, struct file *file) in rcugp_open() argument 207 return single_open(file, show_rcugp, NULL); in rcugp_open()
|
D | lockdep_proc.c | 129 static int lockdep_open(struct inode *inode, struct file *file) in lockdep_open() argument 131 int res = seq_open(file, &lockdep_ops); in lockdep_open() 133 struct seq_file *m = file->private_data; in lockdep_open() 221 static int lockdep_chains_open(struct inode *inode, struct file *file) in lockdep_chains_open() argument 223 int res = seq_open(file, &lockdep_chains_ops); in lockdep_chains_open() 225 struct seq_file *m = file->private_data; in lockdep_chains_open() 421 static int lockdep_stats_open(struct inode *inode, struct file *file) in lockdep_stats_open() argument 423 return single_open(file, lockdep_stats_show, NULL); in lockdep_stats_open() 676 static int lock_stat_open(struct inode *inode, struct file *file) in lock_stat_open() argument 685 res = seq_open(file, &lockstat_ops); in lock_stat_open() [all …]
|
D | cgroup.c | 1385 struct file *file, in cgroup_write_X64() argument 1419 struct file *file, in cgroup_write_string() argument 1454 static ssize_t cgroup_file_write(struct file *file, const char __user *buf, in cgroup_file_write() argument 1457 struct cftype *cft = __d_cft(file->f_dentry); in cgroup_file_write() 1458 struct cgroup *cgrp = __d_cgrp(file->f_dentry->d_parent); in cgroup_file_write() 1463 return cft->write(cgrp, cft, file, buf, nbytes, ppos); in cgroup_file_write() 1465 return cgroup_write_X64(cgrp, cft, file, buf, nbytes, ppos); in cgroup_file_write() 1467 return cgroup_write_string(cgrp, cft, file, buf, nbytes, ppos); in cgroup_file_write() 1476 struct file *file, in cgroup_read_u64() argument 1488 struct file *file, in cgroup_read_s64() argument [all …]
|
D | dma.c | 138 static int proc_dma_open(struct inode *inode, struct file *file) in proc_dma_open() argument 140 return single_open(file, proc_dma_show, NULL); in proc_dma_open()
|
D | pm_qos_params.c | 116 static ssize_t pm_qos_power_write(struct file *filp, const char __user *buf, 118 static int pm_qos_power_open(struct inode *inode, struct file *filp); 119 static int pm_qos_power_release(struct inode *inode, struct file *filp); 350 static int pm_qos_power_open(struct inode *inode, struct file *filp) in pm_qos_power_open() 372 static int pm_qos_power_release(struct inode *inode, struct file *filp) in pm_qos_power_release() 383 static ssize_t pm_qos_power_write(struct file *filp, const char __user *buf, in pm_qos_power_write()
|
D | sysctl.c | 157 static int proc_do_cad_pid(struct ctl_table *table, int write, struct file *filp, 159 static int proc_taint(struct ctl_table *table, int write, struct file *filp, 2098 struct file *filp, void __user *buffer, in _proc_do_string() 2173 int proc_dostring(struct ctl_table *table, int write, struct file *filp, in proc_dostring() 2201 int write, struct file *filp, void __user *buffer, in __do_proc_dointvec() 2310 static int do_proc_dointvec(struct ctl_table *table, int write, struct file *filp, in do_proc_dointvec() 2334 int proc_dointvec(struct ctl_table *table, int write, struct file *filp, in proc_dointvec() 2345 static int proc_taint(struct ctl_table *table, int write, struct file *filp, in proc_taint() 2422 int proc_dointvec_minmax(struct ctl_table *table, int write, struct file *filp, in proc_dointvec_minmax() 2434 struct file *filp, in __do_proc_doulongvec_minmax() [all …]
|
D | configs.c | 58 ikconfig_read_current(struct file *file, char __user *buf, in ikconfig_read_current() argument
|
D | exec_domain.c | 192 static int execdomains_proc_open(struct inode *inode, struct file *file) in execdomains_proc_open() argument 194 return single_open(file, execdomains_proc_show, NULL); in execdomains_proc_open()
|
D | sched_stats.h | 75 static int schedstat_open(struct inode *inode, struct file *file) in schedstat_open() argument 84 res = single_open(file, show_schedstat, NULL); in schedstat_open() 86 m = file->private_data; in schedstat_open()
|
D | kmod.c | 127 struct file *stdin; 423 struct file **filp) in call_usermodehelper_stdinpipe() 425 struct file *f; in call_usermodehelper_stdinpipe() 501 struct file **filp) in call_usermodehelper_pipe()
|
D | taskstats.c | 391 struct file *file; in cgroupstats_user_cmd() local 399 file = fget_light(fd, &fput_needed); in cgroupstats_user_cmd() 400 if (!file) in cgroupstats_user_cmd() 415 rc = cgroupstats_build(stats, file->f_dentry); in cgroupstats_user_cmd() 424 fput_light(file, fput_needed); in cgroupstats_user_cmd()
|
D | profile.c | 462 static int prof_cpu_mask_write_proc(struct file *file, in prof_cpu_mask_write_proc() argument 501 read_profile(struct file *file, char __user *buf, size_t count, loff_t *ppos) in read_profile() argument 534 static ssize_t write_profile(struct file *file, const char __user *buf, in write_profile() argument
|
D | relay.c | 109 struct file *filp = vma->vm_file; in relay_mmap_buf() 295 struct file *filp) in buf_mapped_default_callback() 303 struct file *filp) in buf_unmapped_default_callback() 875 static int relay_file_open(struct inode *inode, struct file *filp) in relay_file_open() 891 static int relay_file_mmap(struct file *filp, struct vm_area_struct *vma) in relay_file_mmap() 904 static unsigned int relay_file_poll(struct file *filp, poll_table *wait) in relay_file_poll() 929 static int relay_file_release(struct inode *inode, struct file *filp) in relay_file_release() 1131 static ssize_t relay_file_read_subbufs(struct file *filp, loff_t *ppos, in relay_file_read_subbufs() 1168 static ssize_t relay_file_read(struct file *filp, in relay_file_read() 1218 static int subbuf_splice_actor(struct file *in, in subbuf_splice_actor() [all …]
|
D | latencytop.c | 213 lstats_write(struct file *file, const char __user *buf, size_t count, in lstats_write() argument 221 static int lstats_open(struct inode *inode, struct file *filp) in lstats_open()
|
D | resource.c | 99 static int ioports_open(struct inode *inode, struct file *file) in ioports_open() argument 101 int res = seq_open(file, &resource_op); in ioports_open() 103 struct seq_file *m = file->private_data; in ioports_open() 109 static int iomem_open(struct inode *inode, struct file *file) in iomem_open() argument 111 int res = seq_open(file, &resource_op); in iomem_open() 113 struct seq_file *m = file->private_data; in iomem_open()
|
D | kallsyms.c | 451 static int kallsyms_open(struct inode *inode, struct file *file) in kallsyms_open() argument 464 ret = seq_open(file, &kallsyms_op); in kallsyms_open() 466 ((struct seq_file *)file->private_data)->private = iter; in kallsyms_open()
|
D | kprobes.c | 1258 static int __kprobes kprobes_open(struct inode *inode, struct file *filp) in kprobes_open() 1336 static ssize_t read_enabled_file_bool(struct file *file, in read_enabled_file_bool() argument 1350 static ssize_t write_enabled_file_bool(struct file *file, in write_enabled_file_bool() argument 1383 struct dentry *dir, *file; in debugfs_kprobe_init() local 1390 file = debugfs_create_file("list", 0444, dir, NULL, in debugfs_kprobe_init() 1392 if (!file) { in debugfs_kprobe_init() 1397 file = debugfs_create_file("enabled", 0600, dir, in debugfs_kprobe_init() 1399 if (!file) { in debugfs_kprobe_init()
|
/kernel/trace/ |
D | ftrace.c | 884 ftrace_avail_open(struct inode *inode, struct file *file) in ftrace_avail_open() argument 898 ret = seq_open(file, &show_ftrace_seq_ops); in ftrace_avail_open() 900 struct seq_file *m = file->private_data; in ftrace_avail_open() 910 int ftrace_avail_release(struct inode *inode, struct file *file) in ftrace_avail_release() argument 912 struct seq_file *m = (struct seq_file *)file->private_data; in ftrace_avail_release() 915 seq_release(inode, file); in ftrace_avail_release() 922 ftrace_failures_open(struct inode *inode, struct file *file) in ftrace_failures_open() argument 928 ret = ftrace_avail_open(inode, file); in ftrace_failures_open() 930 m = (struct seq_file *)file->private_data; in ftrace_failures_open() 964 ftrace_regex_open(struct inode *inode, struct file *file, int enable) in ftrace_regex_open() argument [all …]
|
D | trace_branch.c | 61 p = f->file + strlen(f->file); in probe_likely_condition() 62 while (p >= f->file && *p != '/') in probe_likely_condition() 67 strncpy(entry->file, p, TRACE_FILE_SIZE); in probe_likely_condition() 69 entry->file[TRACE_FILE_SIZE] = 0; in probe_likely_condition() 247 f = p->file + strlen(p->file); in t_show() 248 while (f >= p->file && *f != '/') in t_show() 277 static int tracing_branch_open(struct inode *inode, struct file *file) in tracing_branch_open() argument 281 ret = seq_open(file, &tracing_likely_seq_ops); in tracing_branch_open() 283 struct seq_file *m = file->private_data; in tracing_branch_open()
|
D | trace_stack.c | 139 stack_max_size_read(struct file *filp, char __user *ubuf, in stack_max_size_read() 153 stack_max_size_write(struct file *filp, const char __user *ubuf, in stack_max_size_write() 287 static int stack_trace_open(struct inode *inode, struct file *file) in stack_trace_open() argument 291 ret = seq_open(file, &stack_trace_seq_ops); in stack_trace_open() 304 struct file *file, void __user *buffer, size_t *lenp, in stack_trace_sysctl() argument 311 ret = proc_dointvec(table, write, file, buffer, lenp, ppos); in stack_trace_sysctl()
|
D | trace.c | 1554 struct file *file = NULL; local 1564 file = vma->vm_file; 1567 if (file) { 1568 ret = trace_seq_path(s, &file->f_path); 1574 if (ret && ((sym_flags & TRACE_ITER_SYM_ADDR) || !file)) 1936 field->file, 2096 field->file, 2429 __tracing_open(struct inode *inode, struct file *file, int *ret) argument 2473 *ret = seq_open(file, &tracer_seq_ops); 2477 m = file->private_data; [all …]
|
/kernel/irq/ |
D | proc.c | 39 static ssize_t irq_affinity_proc_write(struct file *file, in irq_affinity_proc_write() argument 42 unsigned int irq = (int)(long)PDE(file->f_path.dentry->d_inode)->data; in irq_affinity_proc_write() 81 static int irq_affinity_proc_open(struct inode *inode, struct file *file) in irq_affinity_proc_open() argument 83 return single_open(file, irq_affinity_proc_show, PDE(inode)->data); in irq_affinity_proc_open() 101 static ssize_t default_affinity_write(struct file *file, in default_affinity_write() argument 137 static int default_affinity_open(struct inode *inode, struct file *file) in default_affinity_open() argument 139 return single_open(file, default_affinity_show, NULL); in default_affinity_open()
|
/kernel/power/ |
D | user.c | 68 static int snapshot_open(struct inode *inode, struct file *filp) in snapshot_open() 120 static int snapshot_release(struct inode *inode, struct file *filp) in snapshot_release() 141 static ssize_t snapshot_read(struct file *filp, char __user *buf, in snapshot_read() 168 static ssize_t snapshot_write(struct file *filp, const char __user *buf, in snapshot_write() 190 static long snapshot_ioctl(struct file *filp, unsigned int cmd, in snapshot_ioctl()
|
/kernel/time/ |
D | timer_stats.c | 357 static ssize_t tstats_write(struct file *file, const char __user *buf, in tstats_write() argument 393 static int tstats_open(struct inode *inode, struct file *filp) in tstats_open()
|