mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-21 00:06:32 +00:00
feat(driver/net): 将网络设备注册到sysfs, 添加设备类属性文件 (#919)
This commit is contained in:
@ -163,6 +163,14 @@ impl Device for CmosRtcDevice {
|
||||
fn bus(&self) -> Option<Weak<dyn Bus>> {
|
||||
self.inner().device_common.get_bus_weak_or_clear()
|
||||
}
|
||||
|
||||
fn dev_parent(&self) -> Option<Weak<dyn Device>> {
|
||||
self.inner().device_common.get_parent_weak_or_clear()
|
||||
}
|
||||
|
||||
fn set_dev_parent(&self, parent: Option<Weak<dyn Device>>) {
|
||||
self.inner().device_common.parent = parent;
|
||||
}
|
||||
}
|
||||
|
||||
impl KObject for CmosRtcDevice {
|
||||
|
Reference in New Issue
Block a user