把opengrok.ringotek.cn替换为code.dragonos.org.cn (#484)

This commit is contained in:
LoGin
2024-01-01 11:53:49 +08:00
committed by GitHub
parent c566df451c
commit e7071df6a4
36 changed files with 96 additions and 96 deletions

View File

@ -73,7 +73,7 @@ impl CompatibleTable {
/// @parameter: None
/// @return: None
///
/// 参考: https://opengrok.ringotek.cn/xref/linux-6.1.9/drivers/base/platform.c?fi=platform_bus_init#1511
/// 参考: https://code.dragonos.org.cn/xref/linux-6.1.9/drivers/base/platform.c?fi=platform_bus_init#1511
pub fn platform_bus_init() -> Result<(), SystemError> {
let platform_device: Arc<PlatformBusDevice> = PlatformBusDevice::new(
DevicePrivateData::new(

View File

@ -103,7 +103,7 @@ impl PlatformDeviceManager {
}
}
// todo: 插入资源: https://opengrok.ringotek.cn/xref/linux-6.1.9/drivers/base/platform.c?fi=platform_device_add#691
// todo: 插入资源: https://code.dragonos.org.cn/xref/linux-6.1.9/drivers/base/platform.c?fi=platform_device_add#691
let r = device_manager().add_device(pdev.clone() as Arc<dyn Device>);
if r.is_ok() {
pdev.set_state(DeviceState::Initialized);

View File

@ -39,7 +39,7 @@ pub struct PlatformDriverManager;
impl PlatformDriverManager {
/// 注册平台设备驱动
///
/// 参考 https://opengrok.ringotek.cn/xref/linux-6.1.9/drivers/base/platform.c?fi=__platform_driver_register#861
/// 参考 https://code.dragonos.org.cn/xref/linux-6.1.9/drivers/base/platform.c?fi=__platform_driver_register#861
pub fn register(&self, driver: Arc<dyn PlatformDriver>) -> Result<(), SystemError> {
driver.set_bus(Some(Arc::downgrade(&(platform_bus() as Arc<dyn Bus>))));
return driver_manager().register(driver as Arc<dyn Driver>);

View File

@ -111,7 +111,7 @@ impl Bus for PlatformBus {
/// and compare it against the name of the driver. Return whether they match
/// or not.
///
/// 参考 https://opengrok.ringotek.cn/xref/linux-6.1.9/drivers/base/platform.c#1331
/// 参考 https://code.dragonos.org.cn/xref/linux-6.1.9/drivers/base/platform.c#1331
///
///
fn match_device(
@ -151,7 +151,7 @@ impl AttributeGroup for PlatformDeviceAttrGroup {
}
fn attrs(&self) -> &[&'static dyn Attribute] {
// todo: https://opengrok.ringotek.cn/xref/linux-6.1.9/drivers/base/platform.c?r=&mo=38425&fi=1511#1311
// todo: https://code.dragonos.org.cn/xref/linux-6.1.9/drivers/base/platform.c?r=&mo=38425&fi=1511#1311
return &[];
}