Searched refs:map (Results 1 – 8 of 8) sorted by relevance
/DragonOS-0.1.7/kernel/src/libs/ |
D | rbtree.rs | 500 self.inner.next().map(|(k, _)| k) in next() 545 self.inner.next().map(|(_, v)| v) in next() 593 self.inner.next().map(|(_, v)| v) in next() 1616 let map: RBTree<_, _> = vec.into_iter().collect(); in test_keys() localVariable 1617 let keys: Vec<_> = map.keys().cloned().collect(); in test_keys() 1627 let map: RBTree<_, _> = vec.into_iter().collect(); in test_values() localVariable 1628 let values: Vec<_> = map.values().cloned().collect(); in test_values() 1638 let mut map: RBTree<_, _> = vec.into_iter().collect(); in test_values_mut() localVariable 1639 for value in map.values_mut() { in test_values_mut() 1642 let values: Vec<_> = map.values().cloned().collect(); in test_values_mut() [all …]
|
/DragonOS-0.1.7/kernel/src/net/ |
D | syscall.rs | 30 .map(|x| x as u64) in sys_socket() 71 let fd = current_pcb().alloc_fd(f, None).map(|x| x as i64); in do_socket() 84 .map(|x| x as u64) in sys_setsockopt() 114 return socket.setsockopt(level, optname, data).map(|_| 0); in do_setsockopt() 125 .map(|x| x as u64) in sys_getsockopt() 219 .map(|x| x as u64) in sys_connect() 247 .map(|x| x as u64) in sys_bind() 284 .map(|x| x as u64) in sys_sendto() 320 return socket.write(buf, endpoint).map(|n| n as i64); in do_sendto() 339 .map(|x| x as u64) in sys_recvfrom() [all …]
|
D | socket.rs | 809 self.local_endpoint.clone().map(|x| Endpoint::Ip(Some(x))); in endpoint() 824 return socket.remote_endpoint().map(|x| Endpoint::Ip(Some(x))); in peer_endpoint()
|
/DragonOS-0.1.7/kernel/src/ipc/ |
D | syscall.rs | 15 .map(|x| x as u64) in sys_pipe()
|
/DragonOS-0.1.7/kernel/src/filesystem/fat/ |
D | entry.rs | 575 .map(|e| e.to_file())?; in create_file() 648 .map(|e| e.to_dir())?; in create_dir() 1159 .map(|len| len + 1) in name_to_string() 1165 .map(|len| len + 1) in name_to_string() 1187 let iter = name[..total_len].iter().map(|c| decode_u8_ascii(*c)); in name_to_string() 1981 .map(|s| u16::from_str_radix(s, 16)); 2192 let mut name: Vec<u16> = name.chars().map(|c| c as u16).collect(); in new()
|
/DragonOS-0.1.7/kernel/src/driver/disk/ahci/ |
D | mod.rs | 113 .map(|x| { in ahci_rust_init()
|
/DragonOS-0.1.7/kernel/src/filesystem/vfs/ |
D | syscall.rs | 530 let total_len: usize = self.0.iter().map(|slice| slice.len()).sum(); in new_buf()
|
/DragonOS-0.1.7/kernel/src/driver/pci/ |
D | pci.rs | 539 pci_root.map()?; in new() 544 fn map(&mut self) -> Result<u8, PciError> { in map() method
|