Home
last modified time | relevance | path

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

12345678910>>...13

/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/fs/overlayfs/
H A Dfile.c35 int flags = file->f_flags | OVL_OPEN_FLAGS; in ovl_open_realfile()
57 file, file, ovl_whatisit(inode, realinode), file->f_flags, in ovl_open_realfile()
58 realfile, IS_ERR(realfile) ? 0 : realfile->f_flags); in ovl_open_realfile()
72 if (((flags ^ file->f_flags) & O_APPEND) && IS_APPEND(inode)) in ovl_change_flags()
85 file->f_flags = (file->f_flags & ~OVL_SETFL_MASK) | flags; in ovl_change_flags()
164 if (unlikely((file->f_flags ^ realfile->f_flags) & ~OVL_OPEN_FLAGS)) { in ovl_real_file_path()
165 int err = ovl_change_flags(realfile, file->f_flags); in ovl_real_file_path()
211 err = ovl_maybe_copy_up(dentry, file->f_flags); in ovl_open()
[all...]
/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/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/fs/smb/client/
H A Dfile.c479 struct super_block *sb, int mode, unsigned int f_flags, in cifs_posix_open() argument
505 posix_flags = cifs_posix_convert_flags(f_flags); in cifs_posix_open()
542 struct cifs_tcon *tcon, unsigned int f_flags, __u32 *oplock, in cifs_nt_open() argument
557 if (cifs_fscache_enabled(inode) && (f_flags & O_ACCMODE) == O_WRONLY) in cifs_nt_open()
560 desired_access = cifs_convert_flags(f_flags, rdwr_for_fscache); in cifs_nt_open()
586 disposition = cifs_get_disposition(f_flags); in cifs_nt_open()
591 if (f_flags & O_SYNC) in cifs_nt_open()
594 if (f_flags & O_DIRECT) in cifs_nt_open()
611 desired_access = cifs_convert_flags(f_flags, 0); in cifs_nt_open()
703 cfile->f_flags in cifs_new_fileinfo()
[all...]
/linux/fs/proc/
H A Dfd.c26 int f_flags = 0, ret = -ENOENT; in seq_show() local
42 f_flags = file->f_flags; in seq_show()
44 f_flags |= O_CLOEXEC; in seq_show()
58 (long long)file->f_pos, f_flags, in seq_show()
/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()
175 file->f_flags & O_NONBLOCK); in dvb_dvr_open()
179 if ((file->f_flags & O_ACCMODE) == O_WRONLY) { in dvb_dvr_open()
208 if ((file->f_flags & O_ACCMODE) == O_WRONLY) { in dvb_dvr_release()
214 if (((file->f_flags & O_ACCMODE) == O_RDONLY) || in dvb_dvr_release()
252 if ((file->f_flags & O_ACCMODE) != O_WRONLY) in dvb_dvr_write()
276 file->f_flags & O_NONBLOCK, in dvb_dvr_read()
833 &dmxdevfilter->mutex, file->f_flags & O_NONBLOCK); in dvb_demux_open()
993 file->f_flags 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) in do_tee()
[all...]
/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.c125 ((filp->f_flags & O_ACCMODE) != O_RDONLY)) || in comp_open()
127 ((filp->f_flags & O_ACCMODE) != O_WRONLY))) { in comp_open()
194 if ((filp->f_flags & O_NONBLOCK)) in comp_write()
246 if (filp->f_flags & O_NONBLOCK) in comp_read()
/linux/fs/ecryptfs/
H A Dfile.c243 if ((ecryptfs_inode_to_private(inode)->lower_file->f_flags & O_ACCMODE) in ecryptfs_open()
244 == O_RDONLY && (file->f_flags & O_ACCMODE) != O_RDONLY) { in ecryptfs_open()
295 lower_file = dentry_open(&path, file->f_flags, current_cred()); in ecryptfs_dir_open()
/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/arch/csky/mm/
H A Dioremap.c13 } else if (file->f_flags & O_SYNC) { in phys_mem_access_prot()
/linux/fs/notify/fanotify/
H A Dfanotify_user.c356 client_fd = get_unused_fd_flags(group->fanotify_data.f_flags); in create_fd()
364 new_file = dentry_open_nonotify(path, group->fanotify_data.f_flags, in create_fd()
1018 if (file->f_flags & O_NONBLOCK) in fanotify_read()
1610 int f_flags, fd; in SYSCALL_DEFINE2() local
1691 f_flags = O_RDWR; in SYSCALL_DEFINE2()
1693 f_flags |= O_CLOEXEC; in SYSCALL_DEFINE2()
1695 f_flags |= O_NONBLOCK; in SYSCALL_DEFINE2()
1723 group->fanotify_data.f_flags = event_f_flags; in SYSCALL_DEFINE2()
1753 fd = FD_ADD(f_flags, in SYSCALL_DEFINE2()
1755 group, f_flags, FMODE_NONOTIFY)); in SYSCALL_DEFINE2()

12345678910>>...13