mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-20 22:46:31 +00:00
实现unified-init库,支持收集初始化函数到一个数组,并统一初始化 (#474)
* 添加“统一初始化”的过程宏,并把SystemError独立成crate * 使用unified-init来初始化fbmem * 更新workflow,增加内核自动化静态测试
This commit is contained in:
.github/workflows
docs/kernel/libs
kernel
Cargo.tomlMakefile
crates
src
arch
riscv64
x86_64
driver
acpi
base
disk
keyboard
net
timers
rtc
tty
video
exception
filesystem
devfs
fat
kernfs
procfs
ramfs
sysfs
vfs
ipc
libs
align.rself.rs
futex
intertrait
src
lib_ui
mutex.rsnotifier.rsrwlock.rssemaphore.rsspinlock.rsvec_cursor.rsmm
net
process
sched
smp
syscall
time
virt
@ -1,10 +1,10 @@
|
||||
use crate::{
|
||||
filesystem::{sysfs::SysFSKernPrivateData, vfs::PollStatus},
|
||||
libs::spinlock::SpinLockGuard,
|
||||
syscall::SystemError,
|
||||
};
|
||||
use alloc::sync::Arc;
|
||||
use core::fmt::Debug;
|
||||
use system_error::SystemError;
|
||||
|
||||
use super::KernFSInode;
|
||||
|
||||
|
@ -6,6 +6,7 @@ use alloc::{
|
||||
vec::Vec,
|
||||
};
|
||||
use hashbrown::HashMap;
|
||||
use system_error::SystemError;
|
||||
|
||||
use crate::{
|
||||
libs::{
|
||||
@ -13,7 +14,6 @@ use crate::{
|
||||
rwlock::RwLock,
|
||||
spinlock::{SpinLock, SpinLockGuard},
|
||||
},
|
||||
syscall::SystemError,
|
||||
time::TimeSpec,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user