Home
last modified time | relevance | path

Searched defs:T (Results 1 – 20 of 20) sorted by relevance

/DragonOS-0.1.8/kernel/src/libs/
Drwlock.rs81 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 …]
Dlazy_init.rs68 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()
Dvolatile.rs102 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()
Dcasting.rs65 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
Dnotifier.rs30 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()
Dwait_queue.rs99 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()
Dspinlock.rs189 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()
Dmutex.rs62 pub fn lock(&self) -> MutexGuard<T> { in lock()
92 pub fn try_lock(&self) -> Result<MutexGuard<T>, SystemError> { in try_lock()
Drbtree.rs457 fn extend<T: IntoIterator<Item = (K, V)>>(&mut self, iter: T) { in extend()
/DragonOS-0.1.8/kernel/src/mm/
Dpercpu.rs77 pub fn get(&self) -> &T { in get()
82 pub fn get_mut(&mut self) -> &mut T { in get_mut()
Dmod.rs231 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()
Dpage.rs727 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/
Dvirtio_net.rs55 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/
Dtransport_pci.rs315 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/
Dmod.rs101 device: Arc<T>, in register_device()
152 device: Arc<T>, in unregister_device()
/DragonOS-0.1.8/kernel/src/ktest/
Dtest-idr.c363 int M = N / i, T = M / 3, b = 2 * T; in ktest_idr_case4() local
/DragonOS-0.1.8/kernel/src/mm/allocator/
Dbuddy.rs248 pub fn read_page<T>(addr: PhysAddr) -> T { in read_page()
Dpage_frame.rs304 impl<T: FrameAllocator> FrameAllocator for &mut T { implementation
/DragonOS-0.1.8/kernel/src/io/
Ddevice.rs107 impl<T: BlockDevice> Device for T { implementation
/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dmod.rs352 pub fn downcast_ref<T: IndexNode>(&self) -> Option<&T> { in downcast_ref()