Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/driver/net/
Dvirtio_net.rs186 fn consume<R, F>(self, len: usize, f: F) -> R in consume()
188 F: FnOnce(&mut [u8]) -> R, in consume()
201 fn consume<R, F>(self, f: F) -> R in consume()
203 F: FnOnce(&mut [u8]) -> R, in consume()
/DragonOS-0.1.8/kernel/src/mm/
Dpage.rs464 pub struct PageMapper<Arch, F> {
470 frame_allocator: F,
474 impl<Arch: MemoryManagementArch, F: FrameAllocator> PageMapper<Arch, F> {
485 pub unsafe fn new(table_kind: PageTableKind, table_paddr: PhysAddr, allocator: F) -> Self { in new()
495 pub unsafe fn create(table_kind: PageTableKind, mut allocator: F) -> Option<Self> { in create()
505 pub unsafe fn current(table_kind: PageTableKind, allocator: F) -> Self { in current()
534 pub fn allocator_ref(&self) -> &F { in allocator_ref() argument
540 pub fn allocator_mut(&mut self) -> &mut F { in allocator_mut() argument
795 impl<Arch, F: Debug> Debug for PageMapper<Arch, F> {
Ducontext.rs296 F: FnOnce( in mmap()
309 map_func: F, in mmap() argument
/DragonOS-0.1.8/kernel/src/libs/
Dwait_queue.rs54 pub fn sleep_with_func<F>(&self, f: F) in sleep_with_func()
56 F: FnOnce(), in sleep_with_func()