Home
last modified time | relevance | path

Searched refs:F (Results 1 – 13 of 13) sorted by relevance

/DragonOS/kernel/src/libs/
H A Donce.rs29 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 Dwait_queue.rs77 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 Dzone.rs115 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 Dsc.rs215 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 Dloopback.rs51 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 Dvirtio_net.rs578 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 De1000e_driver.rs100 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 DREADME.md5 …/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 Dtriagebot.toml7 "F-*",
H A DREADME_EN.md5 …/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 Dpage.rs1097 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 Ducontext.rs424 F: FnOnce( in mmap()
438 map_func: F, in mmap() argument
/DragonOS/kernel/src/libs/lib_ui/
H A Dtextui.rs1017 impl<F> GlyphMapping for F implementation
1019 F: Sync + Fn(char) -> usize,