/DragonOS-0.1.8/kernel/src/libs/ |
D | mutex.rs | 34 inner: SpinLock<MutexInner>, field 51 inner: SpinLock::new(MutexInner { in new() 64 let mut inner: SpinLockGuard<MutexInner> = self.inner.lock(); in lock() localVariable 66 if inner.is_locked { in lock() 68 if self.check_pid_in_wait_list(&inner, current_pcb().pid) == false { in lock() 69 inner.wait_list.push_back(current_pcb()); in lock() 73 drop(inner); in lock() 77 inner.is_locked = true; in lock() 78 drop(inner); in lock() 93 let mut inner = self.inner.lock(); in try_lock() localVariable [all …]
|
D | rwlock.rs | 53 inner: &'a RwLock<T>, field 61 inner: &'a RwLock<T>, field 200 inner: self, in inner_try_write() 237 inner: self, in inner_try_upgradeable_read() 316 let res = self.inner.lock.compare_exchange( in try_upgrade() 325 let inner = self.inner; in try_upgrade() localVariable 330 data: unsafe { &mut *inner.data.get() }, in try_upgrade() 331 inner, in try_upgrade() 356 while self.inner.current_reader().is_err() { in downgrade() 360 let inner: &RwLock<T> = self.inner; in downgrade() localVariable [all …]
|
D | align.rs | 17 inner: Unique<T>, field 56 inner: unsafe { Unique::new_unchecked(ptr.cast()) }, in new_zeroed() 69 self.inner.as_ptr(), in fmt() 79 core::ptr::drop_in_place(self.inner.as_ptr()); in drop() 81 KERNEL_ALLOCATOR.dealloc(self.inner.as_ptr().cast(), Self::LAYOUT); in drop() 90 unsafe { &*self.inner.as_ptr() } in deref() 96 unsafe { &mut *self.inner.as_ptr() } in deref_mut()
|
D | rbtree.rs | 478 inner: Iter<'a, K, V>, field 484 inner: self.inner.clone(), in clone() 500 self.inner.next().map(|(k, _)| k) in next() 505 self.inner.size_hint() in size_hint() 523 inner: Iter<'a, K, V>, field 529 inner: self.inner.clone(), in clone() 545 self.inner.next().map(|(_, v)| v) in next() 550 self.inner.size_hint() in size_hint() 571 inner: IterMut<'a, K, V>, field 577 inner: self.inner.clone(), in clone() [all …]
|
/DragonOS-0.1.8/kernel/src/mm/ |
D | percpu.rs | 49 inner: Vec<T>, field 69 return Some(Self { inner: data }); in new() 79 &self.inner[cpu_id as usize] in get() 84 &mut self.inner[cpu_id as usize] in get_mut()
|
D | ucontext.rs | 53 inner: RwLock<InnerAddressSpace>, field 58 let inner = InnerAddressSpace::new(create_stack)?; in new() localVariable 60 inner: RwLock::new(inner), in new() 87 &self.inner in deref() 93 &mut self.inner in deref_mut()
|
/DragonOS-0.1.8/kernel/src/driver/net/ |
D | virtio_net.rs | 24 pub inner: Arc<SpinLock<VirtIONet<HalImpl, T, 2>>>, field 30 inner: self.inner.clone(), in clone() 94 smoltcp::wire::EthernetAddress(driver.inner.lock().mac_address()), in new() 122 let inner: Arc<SpinLock<VirtIONet<HalImpl, T, 2>>> = Arc::new(SpinLock::new(driver_net)); in new() localVariable 123 let result = VirtioNICDriver { inner }; in new() 150 match self.inner.lock().receive() { in receive() 162 if self.inner.lock().can_send() { in transmit() 192 let mut driver_net = self.driver.inner.lock(); in consume() 209 .inner in consume() 247 let mac: [u8; 6] = self.driver.inner.lock().mac_address(); in mac()
|
/DragonOS-0.1.8/kernel/src/net/ |
D | syscall.rs | 84 let socket: SpinLockGuard<Box<dyn Socket>> = socket_inode.inner(); in setsockopt() 109 let socket = binding.inner(); in getsockopt() 172 let mut socket = socket.inner(); in connect() 190 let mut socket = socket.inner(); in bind() 220 let socket = socket.inner(); in sendto() 243 let socket = socket.inner(); in recvfrom() 274 let socket = socket.inner(); in recvmsg() 303 let mut socket = socket.inner(); in listen() 318 let socket = socket.inner(); in shutdown() 335 let mut socket = socket.inner(); in accept() [all …]
|
D | socket.rs | 1131 pub fn inner(&self) -> SpinLockGuard<Box<dyn Socket>> { in inner() method
|
/DragonOS-0.1.8/kernel/src/time/ |
D | jiffies.rs | 40 let inner = self.0.lock(); in clocksource_data() localVariable 41 return inner.data.clone(); in clocksource_data()
|
/DragonOS-0.1.8/kernel/src/ipc/ |
D | pipe.rs | 39 let inner = InnerPipeInode { in new() localVariable 65 let result = Arc::new(Self(SpinLock::new(inner))); in new()
|
/DragonOS-0.1.8/docs/kernel/locking/ |
D | rwlock.md | 46 inner: &'a RwLock<T>, 54 inner: &'a RwLock<T>,
|
D | mutex.md | 32 inner: SpinLock<MutexInner>,
|