Home
last modified time | relevance | path

Searched refs:filp (Results 1 – 25 of 28) sorted by relevance

12

/kernel/power/
Duser.c47 static int snapshot_open(struct inode *inode, struct file *filp) in snapshot_open() argument
63 if ((filp->f_flags & O_ACCMODE) == O_RDWR) { in snapshot_open()
68 nonseekable_open(inode, filp); in snapshot_open()
70 filp->private_data = data; in snapshot_open()
72 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) { in snapshot_open()
107 static int snapshot_release(struct inode *inode, struct file *filp) in snapshot_release() argument
115 data = filp->private_data; in snapshot_release()
134 static ssize_t snapshot_read(struct file *filp, char __user *buf, in snapshot_read() argument
144 data = filp->private_data; in snapshot_read()
168 static ssize_t snapshot_write(struct file *filp, const char __user *buf, in snapshot_write() argument
[all …]
Dqos.c336 static int cpu_latency_qos_open(struct inode *inode, struct file *filp) in cpu_latency_qos_open() argument
345 filp->private_data = req; in cpu_latency_qos_open()
350 static int cpu_latency_qos_release(struct inode *inode, struct file *filp) in cpu_latency_qos_release() argument
352 struct pm_qos_request *req = filp->private_data; in cpu_latency_qos_release()
354 filp->private_data = NULL; in cpu_latency_qos_release()
362 static ssize_t cpu_latency_qos_read(struct file *filp, char __user *buf, in cpu_latency_qos_read() argument
365 struct pm_qos_request *req = filp->private_data; in cpu_latency_qos_read()
379 static ssize_t cpu_latency_qos_write(struct file *filp, const char __user *buf, in cpu_latency_qos_write() argument
395 cpu_latency_qos_update_request(filp->private_data, value); in cpu_latency_qos_write()
/kernel/trace/
Dtrace.c4857 int tracing_open_generic(struct inode *inode, struct file *filp) in tracing_open_generic() argument
4865 filp->private_data = inode->i_private; in tracing_open_generic()
4878 int tracing_open_generic_tr(struct inode *inode, struct file *filp) in tracing_open_generic_tr() argument
4887 filp->private_data = inode->i_private; in tracing_open_generic_tr()
4896 int tracing_open_file_tr(struct inode *inode, struct file *filp) in tracing_open_file_tr() argument
4905 filp->private_data = inode->i_private; in tracing_open_file_tr()
4910 int tracing_release_file_tr(struct inode *inode, struct file *filp) in tracing_release_file_tr() argument
4919 int tracing_single_release_file_tr(struct inode *inode, struct file *filp) in tracing_single_release_file_tr() argument
4921 tracing_release_file_tr(inode, filp); in tracing_single_release_file_tr()
4922 return single_release(inode, filp); in tracing_single_release_file_tr()
[all …]
Dtrace_events.c1370 event_enable_read(struct file *filp, char __user *ubuf, size_t cnt, in event_enable_read() argument
1378 file = event_file_data(filp); in event_enable_read()
1400 event_enable_write(struct file *filp, const char __user *ubuf, size_t cnt, in event_enable_write() argument
1420 file = event_file_data(filp); in event_enable_write()
1436 system_enable_read(struct file *filp, char __user *ubuf, size_t cnt, in system_enable_read() argument
1440 struct trace_subsystem_dir *dir = filp->private_data; in system_enable_read()
1483 system_enable_write(struct file *filp, const char __user *ubuf, size_t cnt, in system_enable_write() argument
1486 struct trace_subsystem_dir *dir = filp->private_data; in system_enable_write()
1661 event_id_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) in event_id_read() argument
1663 int id = (long)event_file_data(filp); in event_id_read()
[all …]
Dtrace_stack.c324 stack_max_size_read(struct file *filp, char __user *ubuf, in stack_max_size_read() argument
327 unsigned long *ptr = filp->private_data; in stack_max_size_read()
338 stack_max_size_write(struct file *filp, const char __user *ubuf, in stack_max_size_write() argument
341 long *ptr = filp->private_data; in stack_max_size_write()
Dtrace.h545 struct file *filp, char __user *ubuf,
548 struct file *filp,
589 int tracing_open_generic(struct inode *inode, struct file *filp);
590 int tracing_open_generic_tr(struct inode *inode, struct file *filp);
591 int tracing_open_file_tr(struct inode *inode, struct file *filp);
592 int tracing_release_file_tr(struct inode *inode, struct file *filp);
593 int tracing_single_release_file_tr(struct inode *inode, struct file *filp);
1515 static inline void *event_file_data(struct file *filp) in event_file_data() argument
1517 return READ_ONCE(file_inode(filp)->i_private); in event_file_data()
Dtrace_events_inject.c284 event_inject_write(struct file *filp, const char __user *ubuf, size_t cnt, in event_inject_write() argument
302 file = event_file_data(filp); in event_inject_write()
Dtrace_events_trigger.c326 event_trigger_write(struct file *filp, const char __user *ubuf, in event_trigger_write() argument
329 return event_trigger_regex_write(filp, ubuf, cnt, ppos); in event_trigger_write()
333 event_trigger_open(struct inode *inode, struct file *filp) in event_trigger_open() argument
336 return event_trigger_regex_open(inode, filp); in event_trigger_open()
Dblktrace.c414 static ssize_t blk_dropped_read(struct file *filp, char __user *buffer, in blk_dropped_read() argument
417 struct blk_trace *bt = filp->private_data; in blk_dropped_read()
432 static ssize_t blk_msg_write(struct file *filp, const char __user *buffer, in blk_msg_write() argument
445 bt = filp->private_data; in blk_msg_write()
Dtrace_mmiotrace.c131 static ssize_t mmio_read(struct trace_iterator *iter, struct file *filp, in mmio_read() argument
Dtrace_functions_graph.c1299 graph_depth_write(struct file *filp, const char __user *ubuf, size_t cnt, in graph_depth_write() argument
1317 graph_depth_read(struct file *filp, char __user *ubuf, size_t cnt, in graph_depth_read() argument
Dtrace_osnoise.c1876 osnoise_cpus_read(struct file *filp, char __user *ubuf, size_t count, in osnoise_cpus_read() argument
1924 osnoise_cpus_write(struct file *filp, const char __user *ubuf, size_t count, in osnoise_cpus_write() argument
Dtrace_hwlat.c680 static ssize_t hwlat_mode_write(struct file *filp, const char __user *ubuf, in hwlat_mode_write() argument
Dftrace.c882 ftrace_profile_write(struct file *filp, const char __user *ubuf, in ftrace_profile_write() argument
927 ftrace_profile_read(struct file *filp, char __user *ubuf, in ftrace_profile_read() argument
7948 pid_write(struct file *filp, const char __user *ubuf, in pid_write() argument
7951 struct seq_file *m = filp->private_data; in pid_write()
8023 ftrace_pid_write(struct file *filp, const char __user *ubuf, in ftrace_pid_write() argument
8026 return pid_write(filp, ubuf, cnt, ppos, TRACE_PIDS); in ftrace_pid_write()
8030 ftrace_no_pid_write(struct file *filp, const char __user *ubuf, in ftrace_no_pid_write() argument
8033 return pid_write(filp, ubuf, cnt, ppos, TRACE_NO_PIDS); in ftrace_no_pid_write()
/kernel/trace/rv/
Drv.c212 static ssize_t monitor_enable_read_data(struct file *filp, char __user *user_buf, size_t count, in monitor_enable_read_data() argument
215 struct rv_monitor_def *mdef = filp->private_data; in monitor_enable_read_data()
282 static ssize_t monitor_enable_write_data(struct file *filp, const char __user *user_buf, in monitor_enable_write_data() argument
285 struct rv_monitor_def *mdef = filp->private_data; in monitor_enable_write_data()
317 static ssize_t monitor_desc_read_data(struct file *filp, char __user *user_buf, size_t count, in monitor_desc_read_data() argument
320 struct rv_monitor_def *mdef = filp->private_data; in monitor_desc_read_data()
512 static ssize_t enabled_monitors_write(struct file *filp, const char __user *user_buf, in enabled_monitors_write() argument
596 static ssize_t monitoring_on_read_data(struct file *filp, char __user *user_buf, in monitoring_on_read_data() argument
647 static ssize_t monitoring_on_write_data(struct file *filp, const char __user *user_buf, in monitoring_on_write_data() argument
Drv_reactors.c374 static ssize_t reacting_on_read_data(struct file *filp, in reacting_on_read_data() argument
399 static ssize_t reacting_on_write_data(struct file *filp, const char __user *user_buf, in reacting_on_write_data() argument
/kernel/
Drelay.c813 static int relay_file_open(struct inode *inode, struct file *filp) in relay_file_open() argument
817 filp->private_data = buf; in relay_file_open()
819 return nonseekable_open(inode, filp); in relay_file_open()
829 static int relay_file_mmap(struct file *filp, struct vm_area_struct *vma) in relay_file_mmap() argument
831 struct rchan_buf *buf = filp->private_data; in relay_file_mmap()
842 static __poll_t relay_file_poll(struct file *filp, poll_table *wait) in relay_file_poll() argument
845 struct rchan_buf *buf = filp->private_data; in relay_file_poll()
850 if (filp->f_mode & FMODE_READ) { in relay_file_poll()
851 poll_wait(filp, &buf->read_wait, wait); in relay_file_poll()
867 static int relay_file_release(struct inode *inode, struct file *filp) in relay_file_release() argument
[all …]
Dkcmp.c103 struct file *filp, *filp_epoll, *filp_tgt; in kcmp_epoll_target() local
109 filp = get_file_raw_ptr(task1, idx1); in kcmp_epoll_target()
110 if (!filp) in kcmp_epoll_target()
123 return kcmp_ptr(filp, filp_tgt, KCMP_FILE); in kcmp_epoll_target()
Dlatencytop.c279 static int lstats_open(struct inode *inode, struct file *filp) in lstats_open() argument
281 return single_open(filp, lstats_show, NULL); in lstats_open()
Dksysfs.c196 static ssize_t notes_read(struct file *filp, struct kobject *kobj, in notes_read() argument
/kernel/sched/
Ddebug.c126 sched_feat_write(struct file *filp, const char __user *ubuf, in sched_feat_write() argument
144 inode = file_inode(filp); in sched_feat_write()
158 static int sched_feat_open(struct inode *inode, struct file *filp) in sched_feat_open() argument
160 return single_open(filp, sched_feat_show, NULL); in sched_feat_open()
173 static ssize_t sched_scaling_write(struct file *filp, const char __user *ubuf, in sched_scaling_write() argument
206 static int sched_scaling_open(struct inode *inode, struct file *filp) in sched_scaling_open() argument
208 return single_open(filp, sched_scaling_show, NULL); in sched_scaling_open()
223 static ssize_t sched_dynamic_write(struct file *filp, const char __user *ubuf, in sched_dynamic_write() argument
268 static int sched_dynamic_open(struct inode *inode, struct file *filp) in sched_dynamic_open() argument
270 return single_open(filp, sched_dynamic_show, NULL); in sched_dynamic_open()
[all …]
/kernel/bpf/
Dringbuf.c313 static __poll_t ringbuf_map_poll_kern(struct bpf_map *map, struct file *filp, in ringbuf_map_poll_kern() argument
319 poll_wait(filp, &rb_map->rb->waitq, pts); in ringbuf_map_poll_kern()
326 static __poll_t ringbuf_map_poll_user(struct bpf_map *map, struct file *filp, in ringbuf_map_poll_user() argument
332 poll_wait(filp, &rb_map->rb->waitq, pts); in ringbuf_map_poll_user()
Dsyscall.c662 static int bpf_map_release(struct inode *inode, struct file *filp) in bpf_map_release() argument
664 struct bpf_map *map = filp->private_data; in bpf_map_release()
667 map->ops->map_release(map, filp); in bpf_map_release()
699 static void bpf_map_show_fdinfo(struct seq_file *m, struct file *filp) in bpf_map_show_fdinfo() argument
701 struct bpf_map *map = filp->private_data; in bpf_map_show_fdinfo()
737 static ssize_t bpf_dummy_read(struct file *filp, char __user *buf, size_t siz, in bpf_dummy_read() argument
746 static ssize_t bpf_dummy_write(struct file *filp, const char __user *buf, in bpf_dummy_write() argument
778 static int bpf_map_mmap(struct file *filp, struct vm_area_struct *vma) in bpf_map_mmap() argument
780 struct bpf_map *map = filp->private_data; in bpf_map_mmap()
827 static __poll_t bpf_map_poll(struct file *filp, struct poll_table_struct *pts) in bpf_map_poll() argument
[all …]
/kernel/events/
Duprobes.c787 static int __copy_insn(struct address_space *mapping, struct file *filp, in __copy_insn() argument
797 page = read_mapping_page(mapping, offset >> PAGE_SHIFT, filp); in __copy_insn()
809 static int copy_insn(struct uprobe *uprobe, struct file *filp) in copy_insn() argument
823 err = __copy_insn(mapping, filp, insn, len, offs); in copy_insn()
/kernel/module/
Dsysfs.c149 static ssize_t module_notes_read(struct file *filp, struct kobject *kobj, in module_notes_read() argument

12