Searched refs:O_RDWR (Results 1 – 14 of 14) sorted by relevance
/DragonOS/user/apps/test_filemap/ |
H A D | main.c | 12 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 D | fcntl.h | 15 #define O_RDWR 00000002 // Open read/write macro
|
/DragonOS/user/apps/test_kvm/ |
H A D | main.c | 66 int kvm_fd = open("/dev/kvm", O_RDWR|O_CLOEXEC); in main()
|
/DragonOS/kernel/src/filesystem/ |
H A D | eventfd.rs | 271 FileMode::O_RDWR | FileMode::O_CLOEXEC in sys_eventfd() 273 FileMode::O_RDWR in sys_eventfd()
|
/DragonOS/kernel/src/net/ |
H A D | syscall.rs | 48 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 D | mod.rs | 120 let file = File::new(Arc::new(prog), FileMode::O_RDWR)?; in bpf_prog_load()
|
/DragonOS/kernel/src/perf/ |
H A D | mod.rs | 275 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 D | kvm_dev.rs | 190 let file: File = File::new(vm_inode, FileMode::O_RDWR)?; in kvm_dev_ioctl_create_vm()
|
H A D | vm_dev.rs | 226 let file: File = File::new(vcpu_inode, FileMode::O_RDWR)?; in kvm_vm_ioctl_create_vcpu()
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | open.rs | 225 && (how.o_flags.contains(FileMode::O_RDWR) || how.o_flags.contains(FileMode::O_WRONLY)) in do_sys_openat2()
|
H A D | file.rs | 79 const O_RDWR = 0o2; constant
|
/DragonOS/kernel/src/ipc/ |
H A D | pipe.rs | 283 if mode.contains(FileMode::O_RDWR) { in open()
|
/DragonOS/kernel/src/bpf/map/ |
H A D | mod.rs | 245 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 D | mod.rs | 256 FileMode::O_RDWR | (flags & FileMode::O_CLOEXEC), in do_create_epoll()
|