Home
last modified time | relevance | path

Searched refs:read (Results 1 – 25 of 44) sorted by relevance

12

/DragonOS-0.1.8/kernel/src/driver/keyboard/
Dps2_keyboard.rs23 .read()
100 let guard = self.0.read(); in read_at()
101 let func = guard.f_ops.read.unwrap(); in read_at()
157 return Ok(self.0.read().metadata.clone()); in metadata()
173 return self.0.read().fs.upgrade().unwrap(); in fs()
Dps2_keyboard.c133 .read = ps2_keyboard_read,
/DragonOS-0.1.8/kernel/src/arch/x86_64/
Dcontext.rs27 new_address_space.read().user_mapper.utable.make_current(); in switch_process()
/DragonOS-0.1.8/user/libs/libc/src/include/export/
Dunistd.h25 ssize_t read(int fd, void *buf, size_t count);
/DragonOS-0.1.8/user/apps/shell/
Dcmd_test.c33 n = read(fd[0], buf, buf_SIZE); // 从管道的读端读取一条消息 in shell_pipe_test()
/DragonOS-0.1.8/docs/userland/libc/apis/api-list/
Dunistd.md11 ``ssize_t read(int fd,void *buf,size_t count)`` : 从文件读取
Dfcntl.md18 #define O_RDWR 00000002 // Open read/write
/DragonOS-0.1.8/user/apps/http_server/
Dmain.c97 readSize = read(fd, &buffer, to_read); in send_file()
227 valread = read(new_socket, buffer, MAX_REQUEST_SIZE); in main()
/DragonOS-0.1.8/docs/kernel/filesystem/vfs/
Ddesign.md15read
/DragonOS-0.1.8/kernel/src/net/
Dnet_core.rs120 let guard: RwLockReadGuard<BTreeMap<usize, Arc<dyn NetDriver>>> = NET_DRIVERS.read(); in poll_ifaces()
140 let guard: RwLockReadGuard<BTreeMap<usize, Arc<dyn NetDriver>>> = NET_DRIVERS.read(); in poll_ifaces_try_lock()
Dsocket.rs283 fn read(&self, buf: &mut [u8]) -> (Result<usize, SystemError>, Endpoint) { in read() method
336 let iface = NET_DRIVERS.read().get(&0).unwrap().clone(); in write()
481 fn read(&self, buf: &mut [u8]) -> (Result<usize, SystemError>, Endpoint) { in read() method
709 fn read(&self, buf: &mut [u8]) -> (Result<usize, SystemError>, Endpoint) { in read() method
1163 return self.0.lock().read(&mut buf[0..len]).0; in read_at()
1177 let (read, write, error) = self.0.lock().poll(); in poll()
1179 if read { in poll()
Dmod.rs72 fn read(&self, buf: &mut [u8]) -> (Result<usize, SystemError>, Endpoint); in read() method
/DragonOS-0.1.8/kernel/src/time/
Dtimekeeping.rs107 clock_data.watchdog_last = clock.read(); in timekeeper_setup_internals()
136 let timekeeper = self.0.read(); in tk_get_ns()
138 let clock_now = clock.read(); in tk_get_ns()
Djiffies.rs35 fn read(&self) -> CycleNum { in read() method
Dclocksource.rs150 self.last_check = self.watchdog.as_ref().unwrap().clone().read(); in clocksource_start_watchdog()
180 fn read(&self) -> CycleNum; in read() method
665 let cur_wd_nowclock = cur_watchdog.as_ref().read().data(); in clocksource_watchdog()
688 let cs_now_clock = cs.read(); in clocksource_watchdog()
/DragonOS-0.1.8/docs/kernel/locking/
Drwlock.md86 pub fn read(&self) -> RwLockReadGuard<T>
132 let guard = LOCK.read();
143 let guard = LOCK.read();
/DragonOS-0.1.8/user/libs/libc/src/
Dstdio.c31 read(0, &c, 1); in getchar()
Dunistd.c28 ssize_t read(int fd, void *buf, size_t count) in read() function
/DragonOS-0.1.8/kernel/src/driver/tty/
Dtty_device.rs73 return self.private_data.read().name.clone(); in name()
217 return self.fs.read().upgrade().unwrap(); in fs()
229 return Ok(self.private_data.read().metadata.clone()); in metadata()
/DragonOS-0.1.8/kernel/src/mm/allocator/
Dbuddy.rs249 let page_list = unsafe { A::read(A::phys_2_virt(addr).unwrap()) }; in read_page()
312 A::read(Self::entry_virt_addr( in pop_front()
467 let entry: PhysAddr = unsafe { A::read(entry_virt_addr) }; in buddy_free()
576 A::read(Self::entry_virt_addr( in buddy_free()
598 A::read(Self::entry_virt_addr( in buddy_free()
/DragonOS-0.1.8/user/libs/libKeyboard/
Dkeyboard.c531 read(fd, &ret, 1); in keyboard_get_scancode()
/DragonOS-0.1.8/kernel/src/filesystem/vfs/
DVFS.h187 long (*read)(struct vfs_file_t *file_ptr, char *buf, int64_t count, long *position); member
/DragonOS-0.1.8/user/apps/test_relibc/
Dmain.c222 len = read(STDIN_FILENO, buffer, sizeof(buffer)); in udp_client()
/DragonOS-0.1.8/kernel/src/libs/
Dnotifier.rs168 let notifier_chain_guard = self.0.read(); in call_chain()
Delf.rs311 file.read(read_size, &mut buf[..read_size])?; in do_load_file()
418 file.read(shdr_buf_size as usize, &mut shdr_buf) in parse_segments()
451 file.read(size, data_buf) in parse_segments()

12