This commit is contained in:
2025-03-10 14:04:37 +08:00
parent 5644e716e1
commit b361310953
6 changed files with 5 additions and 13 deletions

View File

@ -1,4 +1,5 @@
use core::{default, sync::atomic::AtomicU8};
#![allow(dead_code)]
use core::sync::atomic::AtomicU8;
use system_error::SystemError;

View File

@ -122,11 +122,6 @@ impl BoundUdp {
})
}
#[inline]
pub fn can_recv(&self) -> bool {
self.with_socket(|socket| socket.can_recv())
}
pub fn try_send(
&self,
buf: &[u8],

View File

@ -132,7 +132,7 @@ impl Init {
} else {
smoltcp::wire::IpListenEndpoint::from(local)
};
log::debug!("listen at {:?}", listen_addr);
// log::debug!("listen at {:?}", listen_addr);
let mut inners = Vec::new();
if let Err(err) = || -> Result<(), SystemError> {
for _ in 0..(backlog - 1) {

View File

@ -30,6 +30,7 @@ impl IndexNode for Inode {
data: crate::libs::spinlock::SpinLockGuard<crate::filesystem::vfs::FilePrivateData>,
) -> Result<usize, SystemError> {
drop(data);
defer::defer!(log::debug!("write end."));
self.inner.write(buf)
}

View File

@ -1,3 +1,4 @@
#![allow(unused)]
use core::sync::atomic::{AtomicUsize, Ordering};
use log::debug;