Home
last modified time | relevance | path

Searched refs:f_flags (Results 1 – 25 of 345) sorted by last modified time

12345678910>>...14

/linux/security/landlock/
H A Dfs.c1476 if (file->f_flags & __FMODE_EXEC) in get_required_file_open_access()
/linux/net/unix/
H A Daf_unix.c2930 if (sock->file->f_flags & O_NONBLOCK || in unix_stream_splice_read()
/linux/net/
H A Dsocket.c1129 if (file->f_flags & O_NONBLOCK || (iocb->ki_flags & IOCB_NOWAIT)) in sock_read_iter()
1154 if (file->f_flags & O_NONBLOCK || (iocb->ki_flags & IOCB_NOWAIT)) in sock_write_iter()
1929 arg->flags |= sock->file->f_flags; in do_accept()
2050 addrlen, sock->file->f_flags | file_flags); in __sys_connect_file()
2189 if (sock->file->f_flags & O_NONBLOCK) in __sys_sendto()
2241 if (sock->file->f_flags & O_NONBLOCK) in __sys_recvfrom()
2570 if (sock->file->f_flags & O_NONBLOCK) in ____sys_sendmsg()
2798 if (sock->file->f_flags & O_NONBLOCK) in ____sys_recvmsg()
/linux/net/sctp/
H A Dsocket.c1334 flags = sk->sk_socket->file->f_flags; in __sctp_setsockopt_connectx()
5705 (*newfile)->f_flags |= O_NONBLOCK; in sctp_getsockopt_peeloff_common()
/linux/kernel/trace/
H A Dtrace_kprobe.c1259 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in probes_open()
H A Dtrace_uprobe.c788 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in probes_open()
H A Dtrace.c4887 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in tracing_open()
6481 if ((filp->f_flags & O_NONBLOCK)) { in tracing_wait_pipe()
7812 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) in tracing_err_log_open()
7960 if ((filp->f_flags & O_NONBLOCK)) in tracing_buffers_read()
8179 if ((file->f_flags & O_NONBLOCK) || (flags & SPLICE_F_NONBLOCK)) in tracing_buffers_splice_read()
8210 if (!(file->f_flags & O_NONBLOCK)) { in tracing_buffers_ioctl()
H A Dftrace.c4059 if (file->f_flags & O_TRUNC) { in ftrace_regex_open()
6111 if (file->f_flags & O_TRUNC) in __ftrace_graph_open()
7691 (file->f_flags & O_TRUNC)) in pid_open()
/linux/kernel/
H A Dsignal.c3936 if (f.file->f_flags & PIDFD_THREAD) in SYSCALL_DEFINE4()
H A Dexit.c1647 unsigned int f_flags = 0; in kernel_waitid_prepare() local
1683 pid = pidfd_get_pid(upid, &f_flags); in kernel_waitid_prepare()
1697 if (f_flags & O_NONBLOCK) in kernel_waitid_prepare()
/linux/kernel/bpf/
H A Dsyscall.c1204 int f_flags; in map_create() local
1230 f_flags = bpf_get_file_flag(attr->map_flags); in map_create()
1231 if (f_flags < 0) in map_create()
1232 return f_flags; in map_create()
1397 err = bpf_map_new_fd(map, f_flags); in map_create()
4411 int f_flags; in bpf_map_get_fd_by_id() local
4421 f_flags = bpf_get_file_flag(attr->open_flags); in bpf_map_get_fd_by_id()
4422 if (f_flags < 0) in bpf_map_get_fd_by_id()
4423 return f_flags; in bpf_map_get_fd_by_id()
4436 fd = bpf_map_new_fd(map, f_flags); in bpf_map_get_fd_by_id()
/linux/io_uring/
H A Dnet.c914 if (sock->file->f_flags & O_NONBLOCK) in io_recvmsg_multishot()
/linux/fs/
H A Dioctl.c358 filp->f_flags |= flag; in ioctl_fionbio()
360 filp->f_flags &= ~flag; in ioctl_fionbio()
377 if ((flag ^ filp->f_flags) & FASYNC) { in ioctl_fioasync()
/linux/fs/ext4/
H A Dextents.c4692 if (file->f_flags & O_SYNC) in ext4_zero_range()
4796 if (file->f_flags & O_SYNC && EXT4_SB(inode->i_sb)->s_journal) { in ext4_fallocate()
/linux/drivers/infiniband/core/
H A Duser_mad.c402 if (filp->f_flags & O_NONBLOCK) in ib_umad_read()
1098 if (filp->f_flags & O_NONBLOCK) { in ib_umad_sm_open()
/linux/arch/powerpc/platforms/cell/spufs/
H A Dfile.c713 if (file->f_flags & O_NONBLOCK) { in spufs_ibox_read()
852 if (file->f_flags & O_NONBLOCK) { in spufs_wbox_write()
1509 if (file->f_flags & O_NONBLOCK) { in spufs_mfc_read()
1646 if (file->f_flags & O_NONBLOCK) { in spufs_mfc_write()
2372 } else if (file->f_flags & O_NONBLOCK) { in spufs_switch_log_read()
/linux/arch/arm/mm/
H A Dmmu.c718 else if (file->f_flags & O_SYNC) in phys_mem_access_prot()
/linux/drivers/media/v4l2-core/
H A Dv4l2-subdev.c683 return v4l2_event_dequeue(vfh, arg, file->f_flags & O_NONBLOCK); in subdev_do_ioctl()
H A Dv4l2-mem2mem.c807 ret = vb2_dqbuf(vq, buf, file->f_flags & O_NONBLOCK); in v4l2_m2m_dqbuf()
H A Dv4l2-ioctl.c2726 return v4l2_event_dequeue(fh, arg, file->f_flags & O_NONBLOCK); in v4l_dqevent()
/linux/drivers/media/rc/
H A Dlirc_dev.c618 if (file->f_flags & O_NONBLOCK) in lirc_read_mode2()
657 if (file->f_flags & O_NONBLOCK) in lirc_read_scancode()
/linux/drivers/media/common/videobuf2/
H A Dvideobuf2-v4l2.c1108 return vb2_dqbuf(vdev->queue, p, file->f_flags & O_NONBLOCK); in vb2_ioctl_dqbuf()
1191 file->f_flags & O_NONBLOCK); in vb2_fop_write()
1216 file->f_flags & O_NONBLOCK); in vb2_fop_read()
/linux/drivers/media/dvb-core/
H A Ddvbdev.c135 if ((file->f_flags & O_ACCMODE) == O_RDONLY) { in dvb_generic_open()
157 if ((file->f_flags & O_ACCMODE) == O_RDONLY) in dvb_generic_release()
/linux/drivers/media/cec/core/
H A Dcec-api.c508 bool block = !(filp->f_flags & O_NONBLOCK); in cec_ioctl()
/linux/sound/core/
H A Dpcm_native.c1924 int f_flags = (__force int)state; in snd_pcm_pre_prepare() local
1931 substream->f_flags = f_flags; in snd_pcm_pre_prepare()
1970 int f_flags; in snd_pcm_prepare() local
1973 f_flags = file->f_flags; in snd_pcm_prepare()
1975 f_flags = substream->f_flags; in snd_pcm_prepare()
1990 (__force snd_pcm_state_t)f_flags); in snd_pcm_prepare()
2093 if (file->f_flags & O_NONBLOCK) in snd_pcm_drain()
2095 } else if (substream->f_flags & O_NONBLOCK) in snd_pcm_drain()
2846 if (file->f_flags & O_NONBLOCK) { in snd_pcm_open()

12345678910>>...14