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

View File

@ -31,9 +31,3 @@ DragonOS是一个开源项目我们欢迎任何形式的赞助和捐赠
------------------------- -------------------------
DragonOS社区的捐赠信息将按年进行公开。赞助商、赞助者信息将在收到赞助后15天内进行公开。 DragonOS社区的捐赠信息将按年进行公开。赞助商、赞助者信息将在收到赞助后15天内进行公开。
社区管理、财务及法务主体
-------------------------
灵高是DragonOS社区为满足相关监管合规要求成立的 **非营利性质** 的单位。详情请见https://ringotek.com.cn

View File

@ -1,4 +1,5 @@
use core::{default, sync::atomic::AtomicU8}; #![allow(dead_code)]
use core::sync::atomic::AtomicU8;
use system_error::SystemError; 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( pub fn try_send(
&self, &self,
buf: &[u8], buf: &[u8],

View File

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

View File

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

View File

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