Home
last modified time | relevance | path

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

1234567891011

/linux/arch/mips/include/uapi/asm/
H A Dstatfs.h37 long f_flags; member
58 __u32 f_flags; member
79 long f_flags; member
95 __u32 f_flags; member
/linux/include/uapi/asm-generic/
H A Dstatfs.h34 __statfs_word f_flags; member
57 __statfs_word f_flags; member
80 __u32 f_flags; member
/linux/fs/9p/
H A Dfid.h50 unsigned int s_cache, unsigned int f_flags) in v9fs_fid_add_modes() argument
54 (s_flags & V9FS_DIRECT_IO) || (f_flags & O_DIRECT)) { in v9fs_fid_add_modes()
57 (f_flags & O_DSYNC) || (s_flags & V9FS_SYNC)) { in v9fs_fid_add_modes()
/linux/fs/smb/client/
H A Dfile.c485 struct super_block *sb, int mode, unsigned int f_flags, in cifs_posix_open() argument
511 posix_flags = cifs_posix_convert_flags(f_flags); in cifs_posix_open()
548 struct cifs_tcon *tcon, unsigned int f_flags, __u32 *oplock, in cifs_nt_open() argument
563 if (cifs_fscache_enabled(inode) && (f_flags & O_ACCMODE) == O_WRONLY) in cifs_nt_open()
566 desired_access = cifs_convert_flags(f_flags, rdwr_for_fscache); in cifs_nt_open()
592 disposition = cifs_get_disposition(f_flags); in cifs_nt_open()
594 create_options |= cifs_open_create_options(f_flags, create_options); in cifs_nt_open()
610 desired_access = cifs_convert_flags(f_flags, 0); in cifs_nt_open()
702 cfile->f_flags = file->f_flags; in cifs_new_fileinfo()
705 cfile->status_file_deleted = file->f_flags & O_TMPFILE; in cifs_new_fileinfo()
[all …]
/linux/arch/s390/include/uapi/asm/
H A Dstatfs.h32 unsigned int f_flags; member
47 unsigned int f_flags; member
/linux/fs/vboxsf/
H A Dfile.c66 if (file->f_flags & O_CREAT) { in vboxsf_file_open()
72 if (file->f_flags & O_TRUNC) in vboxsf_file_open()
78 if (file->f_flags & O_TRUNC) in vboxsf_file_open()
82 switch (file->f_flags & O_ACCMODE) { in vboxsf_file_open()
99 if (file->f_flags & O_APPEND) in vboxsf_file_open()
/linux/drivers/s390/char/
H A Dhmcdrv_dev.c73 if (fp->f_flags & O_NONBLOCK) in hmcdrv_dev_open()
79 if ((fp->f_flags & O_ACCMODE) == O_RDONLY) in hmcdrv_dev_open()
176 if (((fp->f_flags & O_ACCMODE) == O_WRONLY) || in hmcdrv_dev_read()
/linux/drivers/staging/media/av7110/
H A Dav7110_av.c933 if ((file->f_flags & O_ACCMODE) != O_RDONLY) in dvb_video_poll()
941 if ((file->f_flags & O_ACCMODE) != O_RDONLY) { in dvb_video_poll()
963 if ((file->f_flags & O_ACCMODE) == O_RDONLY) in dvb_video_write()
972 return ts_play(av7110, buf, count, file->f_flags & O_NONBLOCK, 1); in dvb_video_write()
974 return dvb_play(av7110, buf, count, file->f_flags & O_NONBLOCK, 1); in dvb_video_write()
1015 return ts_play(av7110, buf, count, file->f_flags & O_NONBLOCK, 0); in dvb_audio_write()
1017 return dvb_aplay(av7110, buf, count, file->f_flags & O_NONBLOCK, 0); in dvb_audio_write()
1139 if ((file->f_flags & O_ACCMODE) == O_RDONLY) { in dvb_video_ioctl()
1219 ret = dvb_compat_video_get_event(av7110, parg, file->f_flags); in dvb_video_ioctl()
1224 ret = dvb_video_get_event(av7110, parg, file->f_flags); in dvb_video_ioctl()
[all …]
/linux/drivers/media/dvb-core/
H A Ddmxdev.c145 if ((file->f_flags & O_ACCMODE) == O_RDONLY) in dvb_dvr_open()
147 else if ((file->f_flags & O_ACCMODE) == O_RDWR) { in dvb_dvr_open()
177 file->f_flags & O_NONBLOCK); in dvb_dvr_open()
181 if ((file->f_flags & O_ACCMODE) == O_WRONLY) { in dvb_dvr_open()
210 if ((file->f_flags & O_ACCMODE) == O_WRONLY) { in dvb_dvr_release()
216 if (((file->f_flags & O_ACCMODE) == O_RDONLY) || in dvb_dvr_release()
254 if ((file->f_flags & O_ACCMODE) != O_WRONLY) in dvb_dvr_write()
278 file->f_flags & O_NONBLOCK, in dvb_dvr_read()
835 &dmxdevfilter->mutex, file->f_flags & O_NONBLOCK); in dvb_demux_open()
995 file->f_flags & O_NONBLOCK, in dvb_dmxdev_read_sec()
[all …]
/linux/fs/coda/
H A Dfile.c230 unsigned short flags = coda_file->f_flags & (~O_EXCL); in coda_open()
248 host_file->f_flags |= coda_file->f_flags & (O_APPEND | O_SYNC); in coda_open()
263 unsigned short flags = (coda_file->f_flags) & (~O_EXCL); in coda_release()
/linux/fs/
H A Dfcntl.c48 if (((arg ^ filp->f_flags) & O_APPEND) && IS_APPEND(inode)) in setfl()
52 if ((arg & O_NOATIME) && !(filp->f_flags & O_NOATIME)) in setfl()
75 if (((arg ^ filp->f_flags) & FASYNC) && filp->f_op->fasync) { in setfl()
83 filp->f_flags = (arg & SETFL_MASK) | (filp->f_flags & ~SETFL_MASK); in setfl()
474 err = filp->f_flags; in do_fcntl()
1018 filp->f_flags &= ~FASYNC; in fasync_remove_entry()
1071 filp->f_flags |= FASYNC; in fasync_insert_entry()
H A Dsplice.c879 if (out->f_flags & O_NONBLOCK) in splice_to_socket()
978 if ((in->f_flags & O_DIRECT) || IS_DAX(in->f_mapping->host)) in do_splice_read()
1199 if (unlikely(out->f_flags & O_APPEND)) in do_splice_direct_actor()
1323 if ((in->f_flags | out->f_flags) & O_NONBLOCK) in do_splice()
1338 if (unlikely(out->f_flags & O_APPEND)) in do_splice()
1345 if (in->f_flags & O_NONBLOCK) in do_splice()
1371 if (out->f_flags & O_NONBLOCK) in do_splice()
1954 if ((in->f_flags | out->f_flags) & O_NONBLOCK) in do_tee()
/linux/drivers/misc/genwqe/
H A Dcard_base.h506 struct genwqe_ddcb_cmd *cmd, unsigned int f_flags);
519 unsigned int f_flags);
522 unsigned int f_flags);
H A Dcard_dev.c610 rc = __genwqe_execute_raw_ddcb(cd, req, filp->f_flags); in do_flash_update()
728 rc = __genwqe_execute_raw_ddcb(cd, cmd, filp->f_flags); in do_flash_read()
1005 rc = __genwqe_execute_raw_ddcb(cd, cmd, filp->f_flags); in genwqe_execute_ddcb()
1030 rc = __genwqe_execute_raw_ddcb(cd, cmd, filp->f_flags); in do_execute_ddcb()
1097 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) in genwqe_ioctl()
1133 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) in genwqe_ioctl()
1156 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) in genwqe_ioctl()
/linux/kernel/bpf/
H A Dinode.c525 int f_flags; in bpf_obj_get_user() local
529 f_flags = bpf_get_file_flag(flags); in bpf_obj_get_user()
530 if (f_flags < 0) in bpf_obj_get_user()
531 return f_flags; in bpf_obj_get_user()
533 raw = bpf_obj_do_get(path_fd, pathname, &type, f_flags); in bpf_obj_get_user()
540 ret = bpf_map_new_fd(raw, f_flags); in bpf_obj_get_user()
542 ret = (f_flags != O_RDWR) ? -EINVAL : bpf_link_new_fd(raw); in bpf_obj_get_user()
/linux/tools/testing/selftests/mount/
H A Dnosymfollow-test.c186 if ((buf.f_flags & ST_NOSYMFOLLOW) == 0) in test_statfs()
189 if ((buf.f_flags & ST_NOSYMFOLLOW) != 0) in test_statfs()
/linux/arch/mips/kernel/
H A Drtlx.c331 return rtlx_open(iminor(inode), (filp->f_flags & O_NONBLOCK) ? 0 : 1); in file_open()
367 if (!rtlx_read_poll(minor, (file->f_flags & O_NONBLOCK) ? 0 : 1)) in file_read()
382 if (file->f_flags & O_NONBLOCK) in file_write()
/linux/drivers/leds/
H A Duleds.c147 } else if (!udev->new_data && (file->f_flags & O_NONBLOCK)) { in uleds_read()
161 if (!(file->f_flags & O_NONBLOCK)) in uleds_read()
/linux/drivers/most/
H A Dmost_cdev.c128 ((filp->f_flags & O_ACCMODE) != O_RDONLY)) || in comp_open()
130 ((filp->f_flags & O_ACCMODE) != O_WRONLY))) { in comp_open()
197 if ((filp->f_flags & O_NONBLOCK)) in comp_write()
249 if (filp->f_flags & O_NONBLOCK) in comp_read()
/linux/arch/csky/mm/
H A Dioremap.c13 } else if (file->f_flags & O_SYNC) { in phys_mem_access_prot()
/linux/security/tomoyo/
H A Dtomoyo.c315 if (!(cmd == F_SETFL && ((arg ^ file->f_flags) & O_APPEND))) in tomoyo_file_fcntl()
332 if (f->f_flags & __FMODE_EXEC) in tomoyo_file_open()
335 f->f_flags); in tomoyo_file_open()
/linux/sound/core/seq/oss/
H A Dseq_oss_init.c280 if ((file->f_flags & O_ACCMODE) != O_RDONLY) in translate_mode()
282 if ((file->f_flags & O_ACCMODE) != O_WRONLY) in translate_mode()
284 if (file->f_flags & O_NONBLOCK) in translate_mode()
/linux/include/linux/
H A Dstatfs.h20 long f_flags; member
/linux/drivers/media/usb/em28xx/
H A Dem28xx-audio.c232 nonblock = !!(substream->f_flags & O_NONBLOCK); in snd_em28xx_capture_open()
423 nonblock = !!(substream->f_flags & O_NONBLOCK); in em28xx_vol_put()
462 nonblock = !!(substream->f_flags & O_NONBLOCK); in em28xx_vol_get()
498 nonblock = !!(substream->f_flags & O_NONBLOCK); in em28xx_vol_put_mute()
540 nonblock = !!(substream->f_flags & O_NONBLOCK); in em28xx_vol_get_mute()
/linux/fs/proc/
H A Dkmsg.c34 if ((file->f_flags & O_NONBLOCK) && in kmsg_read()

1234567891011