Searched refs:O_WRONLY (Results 1 - 25 of 160) sorted by last modified time

1234567

/linux-master/tools/testing/selftests/mm/
H A Dsplit_huge_page_test.c61 fd = open(path, O_WRONLY);
226 fd = open(testfile, O_CREAT|O_WRONLY, 0664);
318 *fd = open("/proc/sys/vm/drop_caches", O_WRONLY);
/linux-master/fs/ntfs3/
H A Dfile.c1148 (file->f_flags & (O_WRONLY | O_RDWR | O_TRUNC))) {
/linux-master/fs/9p/
H A Dvfs_inode.c172 case O_WRONLY:
/linux-master/block/
H A Dbdev.c941 * It can also happen if a block device is opened as O_RDWR | O_WRONLY.
951 flags |= O_RDWR | O_WRONLY;
953 flags |= O_WRONLY;
/linux-master/fs/smb/server/
H A Dsmb2pdu.c2062 oflags |= O_WRONLY;
/linux-master/fs/bcachefs/
H A Dthread_with_file.c35 fd_flags |= O_WRONLY;
H A Dfs.c1100 if (file->f_flags & (O_WRONLY|O_RDWR)) {
/linux-master/tools/power/x86/turbostat/
H A Dturbostat.c7992 fd = open("/sys/fs/cgroup/cgroup.procs", O_WRONLY);
/linux-master/drivers/crypto/ccp/
H A Dsev-dev.c310 fp = open_file_as_root(init_ex_path, O_CREAT | O_WRONLY, 0600);
/linux-master/kernel/bpf/
H A Dsyscall.c1020 return O_WRONLY;
/linux-master/init/
H A Dinitramfs.c370 int openflags = O_WRONLY|O_CREAT|O_LARGEFILE;
685 file = filp_open("/initrd.image", O_WRONLY|O_CREAT|O_LARGEFILE, 0700);
/linux-master/fs/smb/client/
H A Dfile.c213 else if ((flags & O_ACCMODE) == O_WRONLY)
234 else if ((flags & O_ACCMODE) == O_WRONLY)
357 if (cifs_fscache_enabled(inode) && (f_flags & O_ACCMODE) == O_WRONLY)
1036 if (cifs_fscache_enabled(inode) && (cfile->f_flags & O_ACCMODE) == O_WRONLY)
4253 if ((file->f_flags & O_ACCMODE) == O_WRONLY)
4452 if ((file->f_flags & O_ACCMODE) == O_WRONLY)
4955 if ((file->f_flags & O_ACCMODE) != O_WRONLY && !oncethru) {
5054 break_lease(inode, O_WRONLY);
H A Ddir.c205 if (cifs_fscache_enabled(inode) && (oflags & O_ACCMODE) == O_WRONLY)
/linux-master/fs/nfsd/
H A Dnfs4state.c506 return O_WRONLY;
611 ret = nfsd_file_get(f->fi_fds[O_WRONLY]);
676 ret = nfsd_file_get(f->fi_fds[O_WRONLY]);
690 if (f->fi_fds[O_WRONLY])
691 return f->fi_fds[O_WRONLY];
789 atomic_inc(&fp->fi_access[O_WRONLY]);
824 atomic_read(&fp->fi_access[O_WRONLY]))
854 __nfs4_file_put_access(fp, O_WRONLY);
5659 if (fp->fi_fds[O_WRONLY])
H A Dvfs.c850 mode = (access & NFSD_MAY_WRITE) ? O_WRONLY : O_RDONLY;
888 flags = O_WRONLY|O_LARGEFILE;
/linux-master/fs/vboxsf/
H A Dfile.c87 case O_WRONLY:
/linux-master/fs/
H A Dnamei.c3554 if (open_flag & (O_CREAT | O_TRUNC | O_WRONLY | O_RDWR)) {
/linux-master/drivers/scsi/
H A Dst.c1208 ((st_flags & O_ACCMODE) == O_WRONLY ||
/linux-master/tools/lib/bpf/
H A Dlibbpf.c10802 fd = open(file, O_WRONLY | O_APPEND | O_CLOEXEC, 0);
/linux-master/kernel/printk/
H A Dprintk.c918 if ((file->f_flags & O_ACCMODE) != O_WRONLY) {
/linux-master/scripts/kconfig/
H A Dconfdata.c144 fd = open(depfile_path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
/linux-master/fs/ceph/
H A Dfile.c32 case O_WRONLY:
187 if (flags & (O_WRONLY|O_RDWR|O_CREAT|O_TRUNC))
329 flags = O_WRONLY;
/linux-master/drivers/staging/axis-fifo/
H A Daxis-fifo.c681 if (((f->f_flags & O_ACCMODE) == O_WRONLY) ||
/linux-master/drivers/s390/char/
H A Dvmur.c739 ((accmode == O_WRONLY) && (urd->class != DEV_CLASS_UR_O))) {
/linux-master/fs/overlayfs/
H A Dcopy_up.c633 new_file = ovl_path_open(temp, O_LARGEFILE | O_WRONLY);
1258 return ovl_copy_up_flags(dentry, O_WRONLY);

Completed in 429 milliseconds

1234567