Home
last modified time | relevance | path

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

/DragonOS/kernel/src/net/socket/
H A Dmod.rs41 Endpoint, Protocol, ShutdownType,
144 fn shutdown(&mut self, _type: ShutdownType) -> Result<(), SystemError> { in shutdown()
463 pub shutdown_type: RwLock<ShutdownType>,
471 shutdown_type: RwLock::new(ShutdownType::empty()), in new()
476 pub fn shutdown_type(&self) -> ShutdownType { in shutdown_type() argument
480 pub fn shutdown_type_writer(&mut self) -> RwLockWriteGuard<ShutdownType> { in shutdown_type_writer() argument
485 *self.shutdown_type.write() = ShutdownType::empty(); in reset_shutdown_type()
795 shutdown: ShutdownType, in tcp_poll() argument
813 if shutdown == ShutdownType::SHUTDOWN_MASK || state == tcp::State::Closed { in tcp_poll()
817 if shutdown.contains(ShutdownType::RCV_SHUTDOWN) { in tcp_poll()
[all …]
H A Dinet.rs13 event_poll::EPollEventType, net_core::poll_ifaces, Endpoint, Protocol, ShutdownType,
624 .contains(ShutdownType::RCV_SHUTDOWN) in read()
669 .insert(ShutdownType::RCV_SHUTDOWN); in read()
688 .contains(ShutdownType::RCV_SHUTDOWN) in write()
871 fn shutdown(&mut self, shutdown_type: super::ShutdownType) -> Result<(), SystemError> { in shutdown()
/DragonOS/kernel/src/net/
H A Dmod.rs33 pub struct ShutdownType: u8 {
H A Dsyscall.rs23 Endpoint, Protocol, ShutdownType,
348 socket.shutdown(ShutdownType::from_bits_truncate((how + 1) as u8))?; in shutdown()