/DragonOS/kernel/src/libs/ |
H A D | once.rs | 29 pub fn call_once<F: FnOnce()>(&self, f: F) { in call_once() argument 94 pub fn call_once_force<F>(&self, f: F) in call_once_force() 96 F: FnOnce(&OnceState), in call_once_force()
|
H A D | wait_queue.rs | 77 pub fn sleep_with_func<F>(&self, f: F) in sleep_with_func() 79 F: FnOnce(), in sleep_with_func()
|
/DragonOS/kernel/crates/rust-slabmalloc/src/ |
H A D | zone.rs | 115 pub fn try_reclaim_base_pages<F>(&mut self, mut to_reclaim: usize, mut dealloc: F) in try_reclaim_base_pages() 117 F: Fn(*mut ObjectPage), in try_reclaim_base_pages()
|
H A D | sc.rs | 215 pub fn try_reclaim_pages<F>(&mut self, to_reclaim: usize, dealloc: &mut F) -> usize in try_reclaim_pages() 217 F: FnMut(*mut P), in try_reclaim_pages()
|
/DragonOS/kernel/src/driver/net/ |
H A D | loopback.rs | 51 fn consume<R, F>(mut self, f: F) -> R in consume() 53 F: FnOnce(&mut [u8]) -> R, in consume() 76 fn consume<R, F>(self, len: usize, f: F) -> R in consume() 78 F: FnOnce(&mut [u8]) -> R, in consume()
|
H A D | virtio_net.rs | 578 fn consume<R, F>(self, len: usize, f: F) -> R in consume() 580 F: FnOnce(&mut [u8]) -> R, in consume() 592 fn consume<R, F>(self, f: F) -> R in consume() 594 F: FnOnce(&mut [u8]) -> R, in consume()
|
/DragonOS/kernel/src/driver/net/e1000e/ |
H A D | e1000e_driver.rs | 100 fn consume<R, F>(mut self, f: F) -> R in consume() 102 F: FnOnce(&mut [u8]) -> R, in consume() 111 fn consume<R, F>(self, _len: usize, f: F) -> R in consume() 113 F: FnOnce(&mut [u8]) -> R, in consume()
|
/DragonOS/ |
H A D | README.md | 5 …/img.shields.io/badge/%E5%AE%98%E7%BD%91-DragonOS.org-4c69e4?link=https%3A%2F%2Fbbs.dragonos.org.c… 6 …"https://img.shields.io/badge/BBS-bbs.dragonos.org.cn-purple?link=https%3A%2F%2Fbbs.dragonos.org.c…
|
H A D | triagebot.toml | 7 "F-*",
|
H A D | README_EN.md | 5 …/img.shields.io/badge/%E5%AE%98%E7%BD%91-DragonOS.org-4c69e4?link=https%3A%2F%2Fbbs.dragonos.org.c… 6 …"https://img.shields.io/badge/BBS-bbs.dragonos.org.cn-purple?link=https%3A%2F%2Fbbs.dragonos.org.c…
|
/DragonOS/kernel/src/mm/ |
H A D | page.rs | 1097 pub struct PageMapper<Arch, F> { 1103 frame_allocator: F, 1107 impl<Arch: MemoryManagementArch, F: FrameAllocator> PageMapper<Arch, F> { 1118 pub unsafe fn new(table_kind: PageTableKind, table_paddr: PhysAddr, allocator: F) -> Self { in new() 1128 pub unsafe fn create(table_kind: PageTableKind, mut allocator: F) -> Option<Self> { in create() 1138 pub unsafe fn current(table_kind: PageTableKind, allocator: F) -> Self { in current() 1167 pub fn allocator_ref(&self) -> &F { in allocator_ref() argument 1173 pub fn allocator_mut(&mut self) -> &mut F { in allocator_mut() argument 1596 impl<Arch, F: Debug> Debug for PageMapper<Arch, F> {
|
H A D | ucontext.rs | 424 F: FnOnce( in mmap() 438 map_func: F, in mmap() argument
|
/DragonOS/kernel/src/libs/lib_ui/ |
H A D | textui.rs | 1017 impl<F> GlyphMapping for F implementation 1019 F: Sync + Fn(char) -> usize,
|