mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-21 14:23:39 +00:00
完善设备驱动模型,基于kset、kobj来维护对象之间的关系 (#401)
* 使用kobj和kset管理/sys文件夹下的对象 * 修改notifier,把action从u64换为泛型。 * 完善设备驱动模型,基于kset、kobj来维护对象之间的关系
This commit is contained in:
8
kernel/src/driver/acpi/glue.rs
Normal file
8
kernel/src/driver/acpi/glue.rs
Normal file
@ -0,0 +1,8 @@
|
||||
use alloc::sync::Arc;
|
||||
|
||||
use crate::driver::base::device::Device;
|
||||
|
||||
/// 参考: https://opengrok.ringotek.cn/xref/linux-6.1.9/drivers/acpi/glue.c#352
|
||||
pub fn acpi_device_notify(_dev: &Arc<dyn Device>) {
|
||||
return;
|
||||
}
|
@ -15,6 +15,7 @@ use crate::{
|
||||
};
|
||||
|
||||
mod c_adapter;
|
||||
pub mod glue;
|
||||
pub mod old;
|
||||
|
||||
extern crate acpi;
|
||||
|
Reference in New Issue
Block a user