Home
last modified time | relevance | path

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

/DragonOS-0.1.9/kernel/src/net/socket/
Dsockets.rs900 peer_buffer: Option<Arc<SpinLock<Vec<u8>>>>, field
927 peer_buffer: None, in new()
935 fn set_peer_buffer(&mut self, peer_buffer: Arc<SpinLock<Vec<u8>>>) { in set_peer_buffer()
936 self.peer_buffer = Some(peer_buffer); in set_peer_buffer()
959 if self.peer_buffer.is_none() { in write()
964 let binding = self.peer_buffer.clone().unwrap(); in write()
965 let mut peer_buffer = binding.lock_irqsave(); in write() localVariable
968 if peer_buffer.capacity() - peer_buffer.len() < len { in write()
971 peer_buffer[..len].copy_from_slice(buf); in write()