Home
last modified time | relevance | path

Searched refs:map (Results 1 – 24 of 24) sorted by relevance

/DragonOS-0.1.8/kernel/src/driver/base/map/
Dmod.rs52 if let Some(map) = domain.0.lock().0.get_mut(dev_t.major() % 255) { in kobj_map()
54 map.insert( in kobj_map()
68 if let Some(map) = domain.0.lock().0.get_mut(dev_t.major() % 255) { in kobj_unmap()
71 match map.get(rm_dev_t) { in kobj_unmap()
73 map.remove(rm_dev_t); in kobj_unmap()
87 if let Some(map) = domain.0.lock().0.get(dev_t.major() % 255) { in kobj_lookup()
88 match map.get(&dev_t) { in kobj_lookup()
/DragonOS-0.1.8/kernel/src/driver/base/
Dmod.rs3 pub mod map; module
/DragonOS-0.1.8/kernel/src/smp/
Dc_adapter.rs6 .map(|_| 0usize) in rs_kick_cpu()
/DragonOS-0.1.8/kernel/src/libs/
Drbtree.rs500 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 …]
Delf.rs681 start_code = start_code.map(|v| v + load_bias); in load()
682 end_code = end_code.map(|v| v + load_bias); in load()
683 start_data = start_data.map(|v| v + load_bias); in load()
684 end_data = end_data.map(|v| v + load_bias); in load()
/DragonOS-0.1.8/kernel/src/mm/allocator/
Dkernel_allocator.rs61 .map(|x| x.as_mut_ptr() as *mut u8) in local_alloc()
68 .map(|x| { in local_alloc_zeroed()
Dslab.rs87 let block = self.head.take().map(|node| { in pop()
Dpage_frame.rs293 return self.allocate(PageFrameCount::new(1)).map(|(addr, _)| addr); in allocate_one()
Dbuddy.rs428 .map(|addr| (addr, PageFrameCount::new(1 << (order as usize - MIN_ORDER)))); in buddy_alloc()
/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dsyscall.rs184 let r = current_pcb().alloc_fd(file, None).map(|fd| fd as usize); in open()
196 return current_pcb().drop_fd(fd as i32).map(|_| 0); in close()
325 return file.readdir(dirent).map(|x| x as usize); in getdents()
334 return do_mkdir(path, FileMode::from_bits_truncate(mode as u32)).map(|x| x as usize); in mkdir()
387 let res = current_pcb().alloc_fd(*file_cp, None).map(|x| x as usize); in dup()
439 .map(|x| x as usize); in dup2()
566 let r = file.ftruncate(len).map(|_| 0); in ftruncate()
727 let total_len: usize = self.0.iter().map(|slice| slice.len()).sum(); in new_buf()
/DragonOS-0.1.8/kernel/src/time/
Dsyscall.rs61 let r: Result<usize, SystemError> = nanosleep(slt_spec).map(|slt_spec| { in nanosleep()
/DragonOS-0.1.8/kernel/src/ipc/
Dsyscall.rs68 let retval = signal_kill_something_info(sig, Some(&mut info), pid).map(|x| x as usize); in kill()
201 return retval.map(|_| 0); in sigaction()
/DragonOS-0.1.8/kernel/src/process/
Dc_adapter.rs21 .map(|_| 0) in rs_process_copy_mm()
Dexec.rs231 .map(|s| { in push_at()
241 .map(|s| { in push_at()
/DragonOS-0.1.8/kernel/src/arch/x86_64/
Dsyscall.rs150 .map(|_| 0) in rs_do_execve()
170 return r.map(|_| 0).unwrap_or_else(|e| e.to_posix_errno() as usize); in rs_exec_init_process()
/DragonOS-0.1.8/kernel/src/mm/
Dpage.rs545 pub unsafe fn map( in map() method
636 return self.map_phys(virt, phys, flags).map(|flush| (virt, flush)); in map_linearly()
720 .map(|(paddr, flags)| (paddr, flags, PageFlush::<Arch>::new(virt))); in unmap_phys()
782 .map(|k| subtable.entry(k).expect("invalid page entry")) in unmap_phys_inner()
Ducontext.rs180 for page in new_vma_guard.pages().map(|p| p.virt_address()) { in try_clone()
908 let before: Option<Arc<LockedVMA>> = guard.region.before(&region).map(|virt_region| { in extract()
916 let after: Option<Arc<LockedVMA>> = guard.region.after(&region).map(|virt_region| { in extract()
1098 let r = unsafe { mapper.map(cur_dest.virt_address(), flags) } in zeroed()
/DragonOS-0.1.8/kernel/src/driver/base/char/
Dmod.rs3 map::{kobj_map, kobj_unmap, LockedKObjMap},
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dmod.rs113 .map(|x| { in ahci_rust_init()
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dentry.rs584 .map(|e| e.to_file())?; in create_file()
657 .map(|e| e.to_dir())?; in create_dir()
1168 .map(|len| len + 1) in name_to_string()
1174 .map(|len| len + 1) in name_to_string()
1196 let iter = name[..total_len].iter().map(|c| decode_u8_ascii(*c)); in name_to_string()
1994 .map(|s| u16::from_str_radix(s, 16));
2205 let mut name: Vec<u16> = name.chars().map(|c| c as u16).collect(); in new()
/DragonOS-0.1.8/kernel/src/net/
Dsyscall.rs62 let fd = current_pcb().alloc_fd(f, None).map(|x| x as usize); in socket()
85 return socket.setsockopt(level, optname, optval).map(|_| 0); in setsockopt()
Dsocket.rs963 self.local_endpoint.clone().map(|x| Endpoint::Ip(Some(x))); in endpoint()
978 return socket.remote_endpoint().map(|x| Endpoint::Ip(Some(x))); in peer_endpoint()
/DragonOS-0.1.8/kernel/src/syscall/
Dmod.rs499 Self::brk(new_brk).map(|vaddr| vaddr.data()) in handle()
504 Self::sbrk(increment).map(|vaddr| vaddr.data()) in handle()
/DragonOS-0.1.8/kernel/src/driver/pci/
Dpci.rs622 pci_root.map()?; in new()
627 fn map(&mut self) -> Result<u8, PciError> { in map() method