/kernel/power/ |
D | user.c | 47 static int snapshot_open(struct inode *inode, struct file *filp) in snapshot_open() argument 62 if ((filp->f_flags & O_ACCMODE) == O_RDWR) { in snapshot_open() 67 nonseekable_open(inode, filp); in snapshot_open() 69 filp->private_data = data; in snapshot_open() 71 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) { in snapshot_open() 106 static int snapshot_release(struct inode *inode, struct file *filp) in snapshot_release() argument 113 data = filp->private_data; in snapshot_release() 132 static ssize_t snapshot_read(struct file *filp, char __user *buf, in snapshot_read() argument 141 data = filp->private_data; in snapshot_read() 165 static ssize_t snapshot_write(struct file *filp, const char __user *buf, in snapshot_write() argument [all …]
|
D | qos.c | 338 static int cpu_latency_qos_open(struct inode *inode, struct file *filp) in cpu_latency_qos_open() argument 347 filp->private_data = req; in cpu_latency_qos_open() 352 static int cpu_latency_qos_release(struct inode *inode, struct file *filp) in cpu_latency_qos_release() argument 354 struct pm_qos_request *req = filp->private_data; in cpu_latency_qos_release() 356 filp->private_data = NULL; in cpu_latency_qos_release() 364 static ssize_t cpu_latency_qos_read(struct file *filp, char __user *buf, in cpu_latency_qos_read() argument 367 struct pm_qos_request *req = filp->private_data; in cpu_latency_qos_read() 381 static ssize_t cpu_latency_qos_write(struct file *filp, const char __user *buf, in cpu_latency_qos_write() argument 397 cpu_latency_qos_update_request(filp->private_data, value); in cpu_latency_qos_write()
|
/kernel/ |
D | relay.c | 99 struct file *filp = vma->vm_file; in relay_mmap_buf() local 110 buf->chan->cb->buf_mapped(buf, filp); in relay_mmap_buf() 290 struct file *filp) in buf_mapped_default_callback() argument 298 struct file *filp) in buf_unmapped_default_callback() argument 901 static int relay_file_open(struct inode *inode, struct file *filp) in relay_file_open() argument 905 filp->private_data = buf; in relay_file_open() 907 return nonseekable_open(inode, filp); in relay_file_open() 917 static int relay_file_mmap(struct file *filp, struct vm_area_struct *vma) in relay_file_mmap() argument 919 struct rchan_buf *buf = filp->private_data; in relay_file_mmap() 930 static __poll_t relay_file_poll(struct file *filp, poll_table *wait) in relay_file_poll() argument [all …]
|
D | kcmp.c | 108 struct file *filp, *filp_epoll, *filp_tgt; in kcmp_epoll_target() local 115 filp = get_file_raw_ptr(task1, idx1); in kcmp_epoll_target() 116 if (!filp) in kcmp_epoll_target() 140 return kcmp_ptr(filp, filp_tgt, KCMP_FILE); in kcmp_epoll_target()
|
D | latencytop.c | 253 static int lstats_open(struct inode *inode, struct file *filp) in lstats_open() argument 255 return single_open(filp, lstats_show, NULL); in lstats_open()
|
D | ksysfs.c | 197 static ssize_t notes_read(struct file *filp, struct kobject *kobj, in notes_read() argument
|
D | module.c | 1674 static ssize_t module_notes_read(struct file *filp, struct kobject *kobj, in module_notes_read() argument
|
/kernel/trace/ |
D | trace.c | 4451 int tracing_open_generic(struct inode *inode, struct file *filp) in tracing_open_generic() argument 4459 filp->private_data = inode->i_private; in tracing_open_generic() 4472 int tracing_open_generic_tr(struct inode *inode, struct file *filp) in tracing_open_generic_tr() argument 4481 filp->private_data = inode->i_private; in tracing_open_generic_tr() 4490 int tracing_open_file_tr(struct inode *inode, struct file *filp) in tracing_open_file_tr() argument 4499 filp->private_data = inode->i_private; in tracing_open_file_tr() 4504 int tracing_release_file_tr(struct inode *inode, struct file *filp) in tracing_release_file_tr() argument 4721 tracing_write_stub(struct file *filp, const char __user *ubuf, in tracing_write_stub() argument 4757 tracing_cpumask_read(struct file *filp, char __user *ubuf, in tracing_cpumask_read() argument 4760 struct trace_array *tr = file_inode(filp)->i_private; in tracing_cpumask_read() [all …]
|
D | trace_events.c | 1128 event_enable_read(struct file *filp, char __user *ubuf, size_t cnt, in event_enable_read() argument 1136 file = event_file_data(filp); in event_enable_read() 1158 event_enable_write(struct file *filp, const char __user *ubuf, size_t cnt, in event_enable_write() argument 1178 file = event_file_data(filp); in event_enable_write() 1194 system_enable_read(struct file *filp, char __user *ubuf, size_t cnt, in system_enable_read() argument 1198 struct trace_subsystem_dir *dir = filp->private_data; in system_enable_read() 1241 system_enable_write(struct file *filp, const char __user *ubuf, size_t cnt, in system_enable_write() argument 1244 struct trace_subsystem_dir *dir = filp->private_data; in system_enable_write() 1414 event_id_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) in event_id_read() argument 1416 int id = (long)event_file_data(filp); in event_id_read() [all …]
|
D | trace_stack.c | 325 stack_max_size_read(struct file *filp, char __user *ubuf, in stack_max_size_read() argument 328 unsigned long *ptr = filp->private_data; in stack_max_size_read() 339 stack_max_size_write(struct file *filp, const char __user *ubuf, in stack_max_size_write() argument 342 long *ptr = filp->private_data; in stack_max_size_write()
|
D | trace_hwlat.c | 420 static ssize_t hwlat_read(struct file *filp, char __user *ubuf, in hwlat_read() argument 424 u64 *entry = filp->private_data; in hwlat_read() 457 hwlat_width_write(struct file *filp, const char __user *ubuf, in hwlat_width_write() argument 496 hwlat_window_write(struct file *filp, const char __user *ubuf, in hwlat_window_write() argument
|
D | trace.h | 529 struct file *filp, char __user *ubuf, 532 struct file *filp, 729 int tracing_open_generic(struct inode *inode, struct file *filp); 730 int tracing_open_generic_tr(struct inode *inode, struct file *filp); 731 int tracing_open_file_tr(struct inode *inode, struct file *filp); 732 int tracing_release_file_tr(struct inode *inode, struct file *filp); 1691 static inline void *event_file_data(struct file *filp) in event_file_data() argument 1693 return READ_ONCE(file_inode(filp)->i_private); in event_file_data()
|
D | trace_events_inject.c | 279 event_inject_write(struct file *filp, const char __user *ubuf, size_t cnt, in event_inject_write() argument 297 file = event_file_data(filp); in event_inject_write()
|
D | trace_events_trigger.c | 298 event_trigger_write(struct file *filp, const char __user *ubuf, in event_trigger_write() argument 301 return event_trigger_regex_write(filp, ubuf, cnt, ppos); in event_trigger_write() 305 event_trigger_open(struct inode *inode, struct file *filp) in event_trigger_open() argument 308 return event_trigger_regex_open(inode, filp); in event_trigger_open()
|
D | blktrace.c | 373 static ssize_t blk_dropped_read(struct file *filp, char __user *buffer, in blk_dropped_read() argument 376 struct blk_trace *bt = filp->private_data; in blk_dropped_read() 391 static ssize_t blk_msg_write(struct file *filp, const char __user *buffer, in blk_msg_write() argument 404 bt = filp->private_data; in blk_msg_write()
|
D | trace_mmiotrace.c | 133 static ssize_t mmio_read(struct trace_iterator *iter, struct file *filp, in mmio_read() argument
|
D | trace_functions_graph.c | 1301 graph_depth_write(struct file *filp, const char __user *ubuf, size_t cnt, in graph_depth_write() argument 1319 graph_depth_read(struct file *filp, char __user *ubuf, size_t cnt, in graph_depth_read() argument
|
D | ftrace.c | 885 ftrace_profile_write(struct file *filp, const char __user *ubuf, in ftrace_profile_write() argument 930 ftrace_profile_read(struct file *filp, char __user *ubuf, in ftrace_profile_read() argument 7413 pid_write(struct file *filp, const char __user *ubuf, in pid_write() argument 7416 struct seq_file *m = filp->private_data; in pid_write() 7488 ftrace_pid_write(struct file *filp, const char __user *ubuf, in ftrace_pid_write() argument 7491 return pid_write(filp, ubuf, cnt, ppos, TRACE_PIDS); in ftrace_pid_write() 7495 ftrace_no_pid_write(struct file *filp, const char __user *ubuf, in ftrace_no_pid_write() argument 7498 return pid_write(filp, ubuf, cnt, ppos, TRACE_NO_PIDS); in ftrace_no_pid_write()
|
D | ring_buffer.c | 1001 struct file *filp, poll_table *poll_table, int full) in ring_buffer_poll_wait() argument 1018 poll_wait(filp, &work->full_waiters, poll_table); in ring_buffer_poll_wait() 1024 poll_wait(filp, &work->waiters, poll_table); in ring_buffer_poll_wait()
|
/kernel/bpf/ |
D | syscall.c | 524 static int bpf_map_release(struct inode *inode, struct file *filp) in bpf_map_release() argument 526 struct bpf_map *map = filp->private_data; in bpf_map_release() 529 map->ops->map_release(map, filp); in bpf_map_release() 548 static void bpf_map_show_fdinfo(struct seq_file *m, struct file *filp) in bpf_map_show_fdinfo() argument 550 const struct bpf_map *map = filp->private_data; in bpf_map_show_fdinfo() 586 static ssize_t bpf_dummy_read(struct file *filp, char __user *buf, size_t siz, in bpf_dummy_read() argument 595 static ssize_t bpf_dummy_write(struct file *filp, const char __user *buf, in bpf_dummy_write() argument 627 static int bpf_map_mmap(struct file *filp, struct vm_area_struct *vma) in bpf_map_mmap() argument 629 struct bpf_map *map = filp->private_data; in bpf_map_mmap() 675 static __poll_t bpf_map_poll(struct file *filp, struct poll_table_struct *pts) in bpf_map_poll() argument [all …]
|
D | ringbuf.c | 272 static __poll_t ringbuf_map_poll(struct bpf_map *map, struct file *filp, in ringbuf_map_poll() argument 278 poll_wait(filp, &rb_map->rb->waitq, pts); in ringbuf_map_poll()
|
D | btf.c | 5425 static void bpf_btf_show_fdinfo(struct seq_file *m, struct file *filp) in bpf_btf_show_fdinfo() argument 5427 const struct btf *btf = filp->private_data; in bpf_btf_show_fdinfo() 5433 static int btf_release(struct inode *inode, struct file *filp) in btf_release() argument 5435 btf_put(filp->private_data); in btf_release()
|
/kernel/sched/ |
D | debug.c | 127 sched_feat_write(struct file *filp, const char __user *ubuf, in sched_feat_write() argument 145 inode = file_inode(filp); in sched_feat_write() 159 static int sched_feat_open(struct inode *inode, struct file *filp) in sched_feat_open() argument 161 return single_open(filp, sched_feat_show, NULL); in sched_feat_open()
|
/kernel/events/ |
D | uprobes.c | 791 static int __copy_insn(struct address_space *mapping, struct file *filp, in __copy_insn() argument 801 page = read_mapping_page(mapping, offset >> PAGE_SHIFT, filp); in __copy_insn() 813 static int copy_insn(struct uprobe *uprobe, struct file *filp) in copy_insn() argument 827 err = __copy_insn(mapping, filp, insn, len, offs); in copy_insn()
|
D | core.c | 6338 static int perf_fasync(int fd, struct file *filp, int on) in perf_fasync() argument 6340 struct inode *inode = file_inode(filp); in perf_fasync() 6341 struct perf_event *event = filp->private_data; in perf_fasync() 6345 retval = fasync_helper(fd, filp, on, &event->fasync); in perf_fasync()
|