Home
last modified time | relevance | path

Searched refs:f_flags (Results 1 – 20 of 20) sorted by relevance

/kernel/bpf/
Dbpf_task_storage.c122 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()
Dinode.c533 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()
Dbpf_fuse.c105 int task_fd = get_unused_fd_flags(file->f_flags); in fuse_get_bpf_prog()
Dsyscall.c1079 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/
Dpid.c537 *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()
Dexit.c1654 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/
Duser.c63 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/
Dtrace_recursion_record.c187 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in recursed_function_open()
Dtrace_dynevent.c232 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in dyn_event_open()
Dtrace_events.c2212 (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()
Dtrace_events_trigger.c220 (file->f_flags & O_TRUNC)) { in event_trigger_regex_open()
Dtrace.c5002 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()
Dtrace_uprobe.c792 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in probes_open()
Dtrace_kprobe.c1210 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in probes_open()
Dtrace_events_synth.c2288 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in synth_events_open()
Dftrace.c3934 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/
Dposix-clock.c49 err = clk->ops.read(clk, fp->f_flags, buf, count); in posix_clock_read()
/kernel/trace/rv/
Drv.c506 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) in enabled_monitors_open()
/kernel/printk/
Dprintk.c735 if (file->f_flags & O_NONBLOCK) { in devkmsg_read()
858 if ((file->f_flags & O_ACCMODE) != O_WRONLY) { in devkmsg_open()
/kernel/events/
Dcore.c12282 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()