Searched refs:f_flags (Results 1 – 20 of 20) sorted by relevance
/kernel/bpf/ |
D | bpf_task_storage.c | 122 unsigned int f_flags; in bpf_pid_task_storage_lookup_elem() local 127 pid = pidfd_get_pid(fd, &f_flags); in bpf_pid_task_storage_lookup_elem() 156 unsigned int f_flags; in bpf_pid_task_storage_update_elem() local 161 pid = pidfd_get_pid(fd, &f_flags); in bpf_pid_task_storage_update_elem() 203 unsigned int f_flags; in bpf_pid_task_storage_delete_elem() local 208 pid = pidfd_get_pid(fd, &f_flags); in bpf_pid_task_storage_delete_elem()
|
D | inode.c | 533 int f_flags; in bpf_obj_get_user() local 537 f_flags = bpf_get_file_flag(flags); in bpf_obj_get_user() 538 if (f_flags < 0) in bpf_obj_get_user() 539 return f_flags; in bpf_obj_get_user() 541 raw = bpf_obj_do_get(pathname, &type, f_flags); in bpf_obj_get_user() 548 ret = bpf_map_new_fd(raw, f_flags); in bpf_obj_get_user() 550 ret = (f_flags != O_RDWR) ? -EINVAL : bpf_link_new_fd(raw); in bpf_obj_get_user()
|
D | bpf_fuse.c | 105 int task_fd = get_unused_fd_flags(file->f_flags); in fuse_get_bpf_prog()
|
D | syscall.c | 1079 int f_flags; in map_create() local 1098 f_flags = bpf_get_file_flag(attr->map_flags); in map_create() 1099 if (f_flags < 0) in map_create() 1100 return f_flags; in map_create() 1173 err = bpf_map_new_fd(map, f_flags); in map_create() 3770 int f_flags; in bpf_map_get_fd_by_id() local 3780 f_flags = bpf_get_file_flag(attr->open_flags); in bpf_map_get_fd_by_id() 3781 if (f_flags < 0) in bpf_map_get_fd_by_id() 3782 return f_flags; in bpf_map_get_fd_by_id() 3795 fd = bpf_map_new_fd(map, f_flags); in bpf_map_get_fd_by_id()
|
/kernel/ |
D | pid.c | 537 *flags = f.file->f_flags; in pidfd_get_pid() 563 unsigned int f_flags; in pidfd_get_task() local 567 pid = pidfd_get_pid(pidfd, &f_flags); in pidfd_get_task() 576 *flags = f_flags; in pidfd_get_task()
|
D | exit.c | 1654 unsigned int f_flags = 0; in kernel_waitid() local 1688 pid = pidfd_get_pid(upid, &f_flags); in kernel_waitid() 1702 if (f_flags & O_NONBLOCK) in kernel_waitid() 1706 if (!ret && !(options & WNOHANG) && (f_flags & O_NONBLOCK)) in kernel_waitid()
|
/kernel/power/ |
D | user.c | 63 if ((filp->f_flags & O_ACCMODE) == O_RDWR) { in snapshot_open() 72 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) { in snapshot_open()
|
/kernel/trace/ |
D | trace_recursion_record.c | 187 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in recursed_function_open()
|
D | trace_dynevent.c | 232 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in dyn_event_open()
|
D | trace_events.c | 2212 (file->f_flags & O_TRUNC)) in ftrace_event_set_open() 2233 (file->f_flags & O_TRUNC)) in ftrace_event_set_pid_open() 2254 (file->f_flags & O_TRUNC)) in ftrace_event_set_npid_open()
|
D | trace_events_trigger.c | 220 (file->f_flags & O_TRUNC)) { in event_trigger_regex_open()
|
D | trace.c | 5002 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in tracing_open() 6761 if ((filp->f_flags & O_NONBLOCK)) { in tracing_wait_pipe() 8071 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) in tracing_err_log_open() 8205 if ((filp->f_flags & O_NONBLOCK)) in tracing_buffers_read() 8411 if ((file->f_flags & O_NONBLOCK) || (flags & SPLICE_F_NONBLOCK)) in tracing_buffers_splice_read()
|
D | trace_uprobe.c | 792 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in probes_open()
|
D | trace_kprobe.c | 1210 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in probes_open()
|
D | trace_events_synth.c | 2288 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in synth_events_open()
|
D | ftrace.c | 3934 if (file->f_flags & O_TRUNC) { in ftrace_regex_open() 6311 if (file->f_flags & O_TRUNC) in __ftrace_graph_open() 7884 (file->f_flags & O_TRUNC)) in pid_open()
|
/kernel/time/ |
D | posix-clock.c | 49 err = clk->ops.read(clk, fp->f_flags, buf, count); in posix_clock_read()
|
/kernel/trace/rv/ |
D | rv.c | 506 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) in enabled_monitors_open()
|
/kernel/printk/ |
D | printk.c | 735 if (file->f_flags & O_NONBLOCK) { in devkmsg_read() 858 if ((file->f_flags & O_ACCMODE) != O_WRONLY) { in devkmsg_open()
|
/kernel/events/ |
D | core.c | 12282 int f_flags = O_RDWR; in SYSCALL_DEFINE5() local 12341 f_flags |= O_CLOEXEC; in SYSCALL_DEFINE5() 12343 event_fd = get_unused_fd_flags(f_flags); in SYSCALL_DEFINE5() 12494 f_flags); in SYSCALL_DEFINE5()
|