Home
last modified time | relevance | path

Searched refs:O_RDWR (Results 1 – 14 of 14) sorted by relevance

/DragonOS/user/apps/test_filemap/
H A Dmain.c12 int fd = open("example.txt", O_RDWR | O_CREAT | O_TRUNC, 0777); in main()
25 fd = open("example.txt", O_RDWR); in main()
56 fd = open("example.txt", O_RDWR); in main()
/DragonOS/kernel/src/common/
H A Dfcntl.h15 #define O_RDWR 00000002 // Open read/write macro
/DragonOS/user/apps/test_kvm/
H A Dmain.c66 int kvm_fd = open("/dev/kvm", O_RDWR|O_CLOEXEC); in main()
/DragonOS/kernel/src/filesystem/
H A Deventfd.rs271 FileMode::O_RDWR | FileMode::O_CLOEXEC in sys_eventfd()
273 FileMode::O_RDWR in sys_eventfd()
/DragonOS/kernel/src/net/
H A Dsyscall.rs48 let f = File::new(socketinode, FileMode::O_RDWR)?; in socket()
91 fds[0] = fd_table_guard.alloc_fd(File::new(inode0, FileMode::O_RDWR)?, None)?; in socketpair()
92 fds[1] = fd_table_guard.alloc_fd(File::new(inode1, FileMode::O_RDWR)?, None)?; in socketpair()
417 let mut file_mode = FileMode::O_RDWR; in do_accept()
594 let fd = Syscall::open(path.as_ptr(), FileMode::O_RDWR.bits(), 0o755, true)?; in to_endpoint()
/DragonOS/kernel/src/bpf/prog/
H A Dmod.rs120 let file = File::new(Arc::new(prog), FileMode::O_RDWR)?; in bpf_prog_load()
/DragonOS/kernel/src/perf/
H A Dmod.rs275 FileMode::O_RDWR | FileMode::O_CLOEXEC in perf_event_open()
277 FileMode::O_RDWR in perf_event_open()
/DragonOS/kernel/src/virt/kvm/
H A Dkvm_dev.rs190 let file: File = File::new(vm_inode, FileMode::O_RDWR)?; in kvm_dev_ioctl_create_vm()
H A Dvm_dev.rs226 let file: File = File::new(vcpu_inode, FileMode::O_RDWR)?; in kvm_vm_ioctl_create_vcpu()
/DragonOS/kernel/src/filesystem/vfs/
H A Dopen.rs225 && (how.o_flags.contains(FileMode::O_RDWR) || how.o_flags.contains(FileMode::O_WRONLY)) in do_sys_openat2()
H A Dfile.rs79 const O_RDWR = 0o2; constant
/DragonOS/kernel/src/ipc/
H A Dpipe.rs283 if mode.contains(FileMode::O_RDWR) { in open()
/DragonOS/kernel/src/bpf/map/
H A Dmod.rs245 let file = File::new(Arc::new(bpf_map), FileMode::O_RDWR | FileMode::O_CLOEXEC)?; in bpf_map_create()
/DragonOS/kernel/src/net/event_poll/
H A Dmod.rs256 FileMode::O_RDWR | (flags & FileMode::O_CLOEXEC), in do_create_epoll()