Searched refs:O_RDWR (Results 1 - 25 of 266) sorted by last modified time

1234567891011

/linux-master/tools/testing/selftests/mm/
H A Dsplit_huge_page_test.c307 *fd = open(testfile, O_CREAT | O_RDWR, 0664);
329 *fd = open(testfile, O_RDWR);
H A Dprotection_keys.c60 int fd = open(file, O_RDWR);
826 fd = open("/dax/foo", O_RDWR);
H A Duffd-unit-tests.c279 args->gup_fd = open("/sys/kernel/debug/gup_test", O_RDWR);
/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.c176 case O_RDWR:
760 "write-only file with writeback enabled, creating w/ O_RDWR\n");
/linux-master/block/
H A Dbdev.c941 * It can also happen if a block device is opened as O_RDWR | O_WRONLY.
949 flags |= O_RDWR;
951 flags |= O_RDWR | O_WRONLY;
/linux-master/virt/kvm/
H A Dkvm_main.c4207 return anon_inode_getfd(name, &kvm_vcpu_fops, vcpu, O_RDWR | O_CLOEXEC);
4817 ret = anon_inode_getfd(ops->name, &kvm_device_fops, dev, O_RDWR | O_CLOEXEC);
5465 file = anon_inode_getfile("kvm-vm", &kvm_vm_fops, kvm, O_RDWR);
/linux-master/fs/smb/server/
H A Dsmb2pdu.c2059 oflags |= O_RDWR;
/linux-master/fs/bcachefs/
H A Dthread_with_file.c31 fd_flags |= O_RDWR;
H A Dfs.c1100 if (file->f_flags & (O_WRONLY|O_RDWR)) {
/linux-master/mm/
H A Dshmem.c4861 res = alloc_file_pseudo(inode, mnt, name, O_RDWR,
/linux-master/kernel/
H A Dfork.c2029 pidfd_file = pidfs_alloc_file(pid, flags | O_RDWR);
/linux-master/init/
H A Dmain.c1513 struct file *file = filp_open("/dev/console", O_RDWR, 0);
/linux-master/io_uring/
H A Dio_uring.c3815 fd = get_unused_fd_flags(O_RDWR | O_CLOEXEC);
3831 O_RDWR | O_CLOEXEC, NULL);
/linux-master/tools/hv/
H A Dhv_kvp_daemon.c261 fd = open(fname, O_RDWR | O_CREAT | O_CLOEXEC, 0644 /* rw-r--r-- */);
1728 kvp_fd = open("/dev/vmbus/hv_kvp", O_RDWR | O_CLOEXEC);
/linux-master/drivers/scsi/
H A Dsg.c930 read_only = (O_RDWR != (filp->f_flags & O_ACCMODE));
H A Dst.c1209 (st_flags & O_ACCMODE) == O_RDWR)) {
/linux-master/kernel/bpf/
H A Dsyscall.c1021 return O_RDWR;
2394 O_RDWR | O_CLOEXEC);
/linux-master/fs/smb/client/
H A Dfile.c215 else if ((flags & O_ACCMODE) == O_RDWR) {
236 else if ((flags & O_ACCMODE) == O_RDWR)
H A Ddir.c560 unsigned oflags = O_EXCL | O_CREAT | O_RDWR;
/linux-master/fs/nfsd/
H A Dnfs4state.c508 return O_RDWR;
613 ret = nfsd_file_get(f->fi_fds[O_RDWR]);
638 ret = nfsd_file_get(f->fi_fds[O_RDWR]);
660 ret = nfsd_file_get(f->fi_fds[O_RDWR]);
674 ret = nfsd_file_get(f->fi_fds[O_RDWR]);
688 if (f->fi_fds[O_RDWR])
689 return f->fi_fds[O_RDWR];
840 swap(f2, fp->fi_fds[O_RDWR]);
5661 if (fp->fi_fds[O_RDWR])
5764 * operations as well, so we require a O_RDWR fil
[all...]
/linux-master/fs/
H A Daio.c272 O_RDWR, &aio_ring_fops);
H A Dnamei.c3554 if (open_flag & (O_CREAT | O_TRUNC | O_WRONLY | O_RDWR)) {
/linux-master/fs/vboxsf/
H A Dfile.c91 case O_RDWR:
/linux-master/tools/testing/selftests/net/
H A Dtls.c1369 fd = open("/tmp/", O_TMPFILE | O_RDWR, 0600);

Completed in 516 milliseconds

1234567891011