mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-21 09:16:35 +00:00
添加thread和futex机制 (#411)
* 初步实现clone系统调用 * 实现了线程,初步实现futex机制,添加了几个小的系统调用 * 更改pcb引用计数问题 * 解决死锁bug --------- Co-authored-by: LoGin <longjin@DragonOS.org>
This commit is contained in:
@ -3,16 +3,12 @@
|
||||
use crate::{
|
||||
driver::{
|
||||
base::{
|
||||
device::{
|
||||
bus::Bus,
|
||||
driver::{Driver, DriverError},
|
||||
Device, DevicePrivateData, IdTable,
|
||||
},
|
||||
device::{bus::Bus, driver::Driver, Device, IdTable},
|
||||
kobject::{KObjType, KObject, KObjectState},
|
||||
},
|
||||
net::NetDriver,
|
||||
},
|
||||
kdebug, kinfo,
|
||||
kinfo,
|
||||
libs::spinlock::SpinLock,
|
||||
net::{generate_iface_id, NET_DRIVERS},
|
||||
syscall::SystemError,
|
||||
@ -84,7 +80,7 @@ impl phy::RxToken for E1000ERxToken {
|
||||
}
|
||||
|
||||
impl phy::TxToken for E1000ETxToken {
|
||||
fn consume<R, F>(self, len: usize, f: F) -> R
|
||||
fn consume<R, F>(self, _len: usize, f: F) -> R
|
||||
where
|
||||
F: FnOnce(&mut [u8]) -> R,
|
||||
{
|
||||
|
Reference in New Issue
Block a user