/DragonOS-0.1.8/kernel/src/libs/ |
D | rwlock.rs | 81 pub fn into_inner(self) -> T { in into_inner() 90 pub fn as_mut_ptr(&self) -> *mut T { in as_mut_ptr() 115 pub fn try_read(&self) -> Option<RwLockReadGuard<T>> { in try_read() 124 fn inner_try_read(&self) -> Option<RwLockReadGuard<T>> { in inner_try_read() 151 pub fn read(&self) -> RwLockReadGuard<T> { in read() 179 pub fn try_write(&self) -> Option<RwLockWriteGuard<T>> { in try_write() 191 fn inner_try_write(&self) -> Option<RwLockWriteGuard<T>> { in inner_try_write() 210 pub fn write(&self) -> RwLockWriteGuard<T> { in write() 222 pub fn try_upgradeable_read(&self) -> Option<RwLockUpgradableGuard<T>> { in try_upgradeable_read() 232 fn inner_try_upgradeable_read(&self) -> Option<RwLockUpgradableGuard<T>> { in inner_try_upgradeable_read() [all …]
|
D | lazy_init.rs | 68 pub fn init(&self, value: T) { in init() 86 pub fn get(&self) -> &T { in get() 93 pub fn try_get(&self) -> Option<&T> { in try_get() 104 pub fn get_mut(&mut self) -> &mut T { in get_mut() 110 pub unsafe fn get_unchecked(&self) -> &T { in get_unchecked() 115 pub unsafe fn get_mut_unchecked(&mut self) -> &mut T { in get_mut_unchecked() 124 fn deref(&self) -> &T { in deref() 131 fn deref_mut(&mut self) -> &mut T { in deref_mut()
|
D | volatile.rs | 102 unsafe fn vread(self) -> T; in vread() 106 unsafe fn vread(self) -> T { in vread() 112 unsafe fn vread(self) -> T { in vread() 120 unsafe fn vwrite(self, value: T); in vwrite() 124 unsafe fn vwrite(self, value: T) { in vwrite() 130 unsafe fn vwrite(self, value: T) { in vwrite()
|
D | casting.rs | 65 fn downcast_arc<T: Any + Send + Sync>(self: Arc<Self>) -> Option<Arc<T>> { in downcast_arc() 70 let new = unsafe { Arc::from_raw(p as *const T) }; in downcast_arc() constant
|
D | notifier.rs | 30 block: Arc<dyn NotifierBlock<T>>, in register() 81 data: Option<&T>, in call_chain() 113 block: Arc<dyn NotifierBlock<T>>, in register_unique_prio() 127 data: Option<&T>, in call_chain() 151 block: Arc<dyn NotifierBlock<T>>, in register_unique_prio() 165 data: Option<&T>, in call_chain() 192 data: Option<&T>, in call_chain()
|
D | wait_queue.rs | 99 pub fn sleep_unlock_spinlock<T>(&self, to_unlock: SpinLockGuard<T>) { in sleep_unlock_spinlock() 110 pub fn sleep_unlock_mutex<T>(&self, to_unlock: MutexGuard<T>) { in sleep_unlock_mutex() 121 pub fn sleep_uninterruptible_unlock_spinlock<T>(&self, to_unlock: SpinLockGuard<T>) { in sleep_uninterruptible_unlock_spinlock() 132 pub fn sleep_uninterruptible_unlock_mutex<T>(&self, to_unlock: MutexGuard<T>) { in sleep_uninterruptible_unlock_mutex()
|
D | spinlock.rs | 189 pub unsafe fn leak(this: Self) -> &'a mut T { in leak() 210 pub fn lock(&self) -> SpinLockGuard<T> { in lock() 219 pub fn lock_irqsave(&self) -> SpinLockGuard<T> { in lock_irqsave() 230 pub fn try_lock(&self) -> Result<SpinLockGuard<T>, SystemError> { in try_lock() 240 pub fn try_lock_irqsave(&self) -> Result<SpinLockGuard<T>, SystemError> { in try_lock_irqsave()
|
D | mutex.rs | 62 pub fn lock(&self) -> MutexGuard<T> { in lock() 92 pub fn try_lock(&self) -> Result<MutexGuard<T>, SystemError> { in try_lock()
|
D | rbtree.rs | 457 fn extend<T: IntoIterator<Item = (K, V)>>(&mut self, iter: T) { in extend()
|
/DragonOS-0.1.8/kernel/src/mm/ |
D | percpu.rs | 77 pub fn get(&self) -> &T { in get() 82 pub fn get_mut(&mut self) -> &mut T { in get_mut()
|
D | mod.rs | 231 pub fn as_ptr<T>(self) -> *mut T { in as_ptr() 393 unsafe fn read<T>(address: VirtAddr) -> T { in read() 394 return ptr::read(address.data() as *const T); in read() constant 399 unsafe fn write<T>(address: VirtAddr, value: T) { in write()
|
D | page.rs | 727 f: impl FnOnce(&mut PageTable<Arch>, usize) -> T, in visit() 728 ) -> Option<T> { in visit() 868 impl<Arch: MemoryManagementArch, T: Flusher<Arch> + ?Sized> Flusher<Arch> for &mut T { implementation
|
/DragonOS-0.1.8/kernel/src/driver/net/ |
D | virtio_net.rs | 55 fn force_get_mut(&self) -> &mut VirtioNICDriver<T> { in force_get_mut() 111 pub fn new(driver_net: VirtIONet<HalImpl, T, 2>) -> Self { in new() argument 135 driver: VirtioNICDriver<T>, in new() 218 pub fn virtio_net<T: Transport + 'static>(transport: T) { in virtio_net()
|
/DragonOS-0.1.8/kernel/src/driver/virtio/ |
D | transport_pci.rs | 315 fn config_space<T>(&self) -> Result<NonNull<T>, Error> { in config_space() 462 ) -> Result<NonNull<T>, VirtioPciError> { in get_bar_region() 496 ) -> Result<NonNull<[T]>, VirtioPciError> { in get_bar_region_slice() 506 fn nonnull_slice_from_raw_parts<T>(data: NonNull<T>, len: usize) -> NonNull<[T]> { in nonnull_slice_from_raw_parts()
|
/DragonOS-0.1.8/kernel/src/filesystem/devfs/ |
D | mod.rs | 101 device: Arc<T>, in register_device() 152 device: Arc<T>, in unregister_device()
|
/DragonOS-0.1.8/kernel/src/ktest/ |
D | test-idr.c | 363 int M = N / i, T = M / 3, b = 2 * T; in ktest_idr_case4() local
|
/DragonOS-0.1.8/kernel/src/mm/allocator/ |
D | buddy.rs | 248 pub fn read_page<T>(addr: PhysAddr) -> T { in read_page()
|
D | page_frame.rs | 304 impl<T: FrameAllocator> FrameAllocator for &mut T { implementation
|
/DragonOS-0.1.8/kernel/src/io/ |
D | device.rs | 107 impl<T: BlockDevice> Device for T { implementation
|
/DragonOS-0.1.8/kernel/src/filesystem/vfs/ |
D | mod.rs | 352 pub fn downcast_ref<T: IndexNode>(&self) -> Option<&T> { in downcast_ref()
|