Home
last modified time | relevance | path

Searched refs:inner (Results 1 – 9 of 9) sorted by relevance

/DragonOS-0.1.7/kernel/src/libs/
Dmutex.rs34 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 …]
Drwlock.rs50 inner: &'a RwLock<T>, field
58 inner: &'a RwLock<T>, field
176 inner: self, in try_write()
203 inner: self, in try_upgradeable_read()
275 let res = self.inner.lock.compare_exchange( in try_upgrade()
284 let inner = self.inner; in try_upgrade() localVariable
289 data: unsafe { &mut *inner.data.get() }, in try_upgrade()
290 inner, in try_upgrade()
315 while self.inner.current_reader().is_err() { in downgrade()
319 let inner: &RwLock<T> = self.inner; in downgrade() localVariable
[all …]
Drbtree.rs478 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.7/kernel/src/driver/net/
Dvirtio_net.rs24 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.7/kernel/src/net/
Dsyscall.rs113 let socket = socket_inode.inner(); in do_setsockopt()
162 let socket = binding.inner(); in do_getsockopt()
235 let mut socket = socket.inner(); in do_connect()
263 let mut socket = socket.inner(); in do_bind()
319 let socket = socket.inner(); in do_sendto()
377 let socket = socket.inner(); in do_recvfrom()
423 let socket = socket.inner(); in do_recvmsg()
461 let mut socket = socket.inner(); in do_listen()
485 let socket = socket.inner(); in do_shutdown()
512 let mut socket = socket.inner(); in do_accept()
[all …]
Dsocket.rs997 pub fn inner(&self) -> SpinLockGuard<Box<dyn Socket>> { in inner() method
/DragonOS-0.1.7/kernel/src/ipc/
Dpipe.rs39 let inner = InnerPipeInode { in new() localVariable
65 let result = Arc::new(Self(SpinLock::new(inner))); in new()
/DragonOS-0.1.7/docs/kernel/locking/
Drwlock.md46 inner: &'a RwLock<T>,
54 inner: &'a RwLock<T>,
Dmutex.md32 inner: SpinLock<MutexInner>,