Searched defs:T (Results 1 – 14 of 14) sorted by relevance
/DragonOS-0.1.7/kernel/src/libs/ |
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 | rwlock.rs | 78 pub fn into_inner(self) -> T { in into_inner() 87 pub fn as_mut_ptr(&self) -> *mut T { in as_mut_ptr() 112 pub fn try_read(&self) -> Option<RwLockReadGuard<T>> { in try_read() 139 pub fn read(&self) -> RwLockReadGuard<T> { in read() 167 pub fn try_write(&self) -> Option<RwLockWriteGuard<T>> { in try_write() 186 pub fn write(&self) -> RwLockWriteGuard<T> { in write() 198 pub fn try_upgradeable_read(&self) -> Option<RwLockUpgradableGuard<T>> { in try_upgradeable_read() 214 pub fn upgradeable_read(&self) -> RwLockUpgradableGuard<T> { in upgradeable_read() 242 pub unsafe fn get_mut(&mut self) -> &mut T { in get_mut() 264 pub fn leak(this: Self) -> &'rwlock T { in leak() [all …]
|
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 | 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 | 187 pub fn lock(&self) -> SpinLockGuard<T> { in lock() 196 pub fn lock_irqsave(&self) -> SpinLockGuard<T> { in lock_irqsave() 206 pub fn try_lock(&self) -> Result<SpinLockGuard<T>, SystemError> { in try_lock() 216 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.7/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.7/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.7/kernel/src/filesystem/devfs/ |
D | mod.rs | 101 device: Arc<T>, in register_device() 152 device: Arc<T>, in unregister_device()
|
/DragonOS-0.1.7/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.7/kernel/src/io/ |
D | device.rs | 107 impl<T: BlockDevice> Device for T { implementation
|
/DragonOS-0.1.7/kernel/src/filesystem/vfs/ |
D | mod.rs | 348 pub fn downcast_ref<T: IndexNode>(&self) -> Option<&T> { in downcast_ref()
|