Searched refs:O_RDONLY (Results 1 - 25 of 357) sorted by last modified time

1234567891011>>

/linux-master/tools/testing/selftests/mm/
H A Dsplit_huge_page_test.c136 pagemap_fd = open(pagemap_proc, O_RDONLY);
140 kpageflags_fd = open(kpageflags_proc, O_RDONLY);
H A Dprotection_keys.c772 fd = open(buf, O_RDONLY);
935 int test_fd = open("/etc/passwd", O_RDONLY);
H A Duffd-unit-tests.c222 int fd = open("/proc/self/pagemap", O_RDONLY);
/linux-master/fs/9p/
H A Dvfs_inode.c168 case O_RDONLY:
/linux-master/block/
H A Dbdev.c955 flags |= O_RDONLY; /* homeopathic, because O_RDONLY is 0 */
/linux-master/virt/kvm/
H A Dkvm_main.c4403 file = anon_inode_getfile(name, &kvm_vcpu_stats_fops, vcpu, O_RDONLY);
5092 &kvm_vm_stats_fops, kvm, O_RDONLY);
/linux-master/tools/testing/selftests/powerpc/papr_vpd/
H A Dpapr_vpd.c18 const int devfd = open(DEVPATH, O_RDONLY);
31 const int devfd = open(DEVPATH, O_RDONLY);
70 const int devfd = open(DEVPATH, O_RDONLY);
111 const int devfd = open(DEVPATH, O_RDONLY);
137 const int devfd = open(DEVPATH, O_RDONLY);
156 const int devfd = open(DEVPATH, O_RDONLY);
179 const int devfd = open(DEVPATH, O_RDONLY);
262 const int devfd = open(DEVPATH, O_RDONLY);
/linux-master/fs/smb/server/
H A Dvfs.c1185 int flags = O_RDONLY | O_LARGEFILE;
H A Dsmb2pdu.c2065 oflags |= O_RDONLY;
3427 } else if (open_flags == O_RDONLY &&
/linux-master/fs/bcachefs/
H A Dthread_with_file.c33 fd_flags |= O_RDONLY;
/linux-master/tools/testing/selftests/net/tcp_ao/lib/
H A Dsetup.c117 fd = open(netns_path, O_RDONLY);
/linux-master/mm/
H A Dhuge_memory.c3537 candidate = file_open_name(file, O_RDONLY, 0);
/linux-master/tools/power/x86/turbostat/
H A Dturbostat.c1520 fd = open(pathname, O_RDONLY);
3114 fdmt = open(path, O_RDONLY, 0);
6363 fd = open(path, O_RDONLY);
/linux-master/drivers/target/
H A Dtarget_core_configfs.c134 fp = filp_open(db_root_stage, O_RDONLY, 0);
3655 fp = filp_open(db_root_stage, O_RDONLY, 0);
/linux-master/drivers/scsi/
H A Dsg.c294 if ((flags & O_EXCL) && (O_RDONLY == (flags & O_ACCMODE)))
H A Dst.c1309 STp->write_prot = ((filp->f_flags & O_ACCMODE) == O_RDONLY);
/linux-master/drivers/crypto/ccp/
H A Dsev-dev.c268 fp = open_file_as_root(init_ex_path, O_RDONLY, 0);
/linux-master/kernel/bpf/
H A Dsyscall.c1018 return O_RDONLY;
/linux-master/fs/smb/client/
H A Dfile.c211 if ((flags & O_ACCMODE) == O_RDONLY)
232 if ((flags & O_ACCMODE) == O_RDONLY)
904 if ((file->f_flags & (O_ACCMODE | O_APPEND)) == O_RDONLY)
5052 break_lease(inode, O_RDONLY);
/linux-master/fs/nfsd/
H A Dnfs4state.c504 return O_RDONLY;
511 return O_RDONLY;
636 ret = nfsd_file_get(f->fi_fds[O_RDONLY]);
678 ret = nfsd_file_get(f->fi_fds[O_RDONLY]);
692 if (f->fi_fds[O_RDONLY])
693 return f->fi_fds[O_RDONLY];
791 atomic_inc(&fp->fi_access[O_RDONLY]);
820 atomic_read(&fp->fi_access[O_RDONLY]))
856 __nfs4_file_put_access(fp, O_RDONLY);
5775 * If the file is being opened O_RDONLY o
[all...]
/linux-master/drivers/gpio/
H A Dgpiolib-cdev.c373 fd = get_unused_fd_flags(O_RDONLY | O_CLOEXEC);
382 O_RDONLY | O_CLOEXEC);
1829 fd = get_unused_fd_flags(O_RDONLY | O_CLOEXEC);
1836 O_RDONLY | O_CLOEXEC);
2255 fd = get_unused_fd_flags(O_RDONLY | O_CLOEXEC);
2264 O_RDONLY | O_CLOEXEC);
/linux-master/fs/vboxsf/
H A Dfile.c83 case O_RDONLY:
/linux-master/fs/
H A Dnamei.c3277 if ((flag & O_ACCMODE) != O_RDONLY && !(flag & O_APPEND))
/linux-master/scripts/mod/
H A Dmodpost.c109 fd = open(filename, O_RDONLY);
394 fd = open(filename, O_RDONLY);
/linux-master/tools/testing/selftests/net/
H A Dtls.c403 int filefd = open("/proc/self/exe", O_RDONLY);
413 int filefd = open("/proc/self/exe", O_RDONLY);

Completed in 424 milliseconds

1234567891011>>