Home
last modified time | relevance | path

Searched refs:fd_table_guard (Results 1 – 9 of 9) sorted by relevance

/DragonOS/kernel/src/filesystem/vfs/
H A Dsyscall.rs528 let mut fd_table_guard = binding.write(); in close() localVariable
529 let _file = fd_table_guard.drop_fd(fd as i32)?; in close()
530 drop(fd_table_guard); in close()
543 let fd_table_guard = binding.read(); in ioctl() localVariable
545 let file = fd_table_guard in ioctl()
550 drop(fd_table_guard); in ioctl()
564 let fd_table_guard = binding.read(); in read() localVariable
566 let file = fd_table_guard.get_file_by_fd(fd); in read()
571 drop(fd_table_guard); in read()
586 let fd_table_guard = binding.read(); in write() localVariable
[all …]
H A Dutils.rs52 let fd_table_guard = binding.read(); in user_path_at() localVariable
53 let file = fd_table_guard in user_path_at()
58 drop(fd_table_guard); in user_path_at()
H A Dopen.rs268 let fd_table_guard = binding.write(); localVariable
269 let file = fd_table_guard
/DragonOS/kernel/src/net/event_poll/
H A Dmod.rs264 let mut fd_table_guard = fd_table.write(); in do_create_epoll() localVariable
266 let fd = fd_table_guard.alloc_fd(ep_file, None)?; in do_create_epoll()
290 let fd_table_guard = fd_table.read(); in do_epoll_ctl() localVariable
293 let ep_file = fd_table_guard in do_epoll_ctl()
296 let dst_file = fd_table_guard in do_epoll_ctl()
406 let fd_table_guard = fd_table.read(); in do_epoll_wait() localVariable
409 let ep_file = fd_table_guard in do_epoll_wait()
413 drop(fd_table_guard); in do_epoll_wait()
/DragonOS/kernel/src/net/
H A Dsyscall.rs51 let mut fd_table_guard = binding.write(); in socket() localVariable
52 let fd = fd_table_guard.alloc_fd(f, None).map(|x| x as usize); in socket()
53 drop(fd_table_guard); in socket()
75 let mut fd_table_guard = binding.write(); in socketpair() localVariable
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()
94 drop(fd_table_guard); in socketpair()
597 let fd_table_guard = binding.read(); in to_endpoint() localVariable
599 let file = fd_table_guard.get_file_by_fd(fd as i32).unwrap(); in to_endpoint()
/DragonOS/kernel/src/ipc/
H A Dsyscall.rs84 let mut fd_table_guard = fd_table_ptr.write(); in pipe2() localVariable
85 let read_fd = fd_table_guard.alloc_fd(read_file, None)?; in pipe2()
86 let write_fd = fd_table_guard.alloc_fd(write_file, None)?; in pipe2()
88 drop(fd_table_guard); in pipe2()
/DragonOS/kernel/src/filesystem/
H A Deventfd.rs277 let mut fd_table_guard = binding.write(); in sys_eventfd() localVariable
278 let fd = fd_table_guard.alloc_fd(file, None).map(|x| x as usize); in sys_eventfd()
/DragonOS/kernel/src/process/
H A Dmod.rs936 let fd_table_guard = binding.read(); in get_socket() localVariable
938 let f = fd_table_guard.get_file_by_fd(fd)?; in get_socket()
939 drop(fd_table_guard); in get_socket()
/DragonOS/kernel/src/mm/
H A Ducontext.rs360 let fd_table_guard = binding.read(); in file_mapping() localVariable
362 let file = fd_table_guard.get_file_by_fd(fd); in file_mapping()
367 drop(fd_table_guard); in file_mapping()