mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-22 07:03:22 +00:00
feat(filesystem): 引入Umount系统调用 (#719)
* feat(filesystem): 引入Umount系统调用 * 将所有ENOSYS误用更正 * 修复了一个使同一个挂载点可以挂载2个文件系统的bug * 统一注释,增强程序稳定性,统一接口。注意:Umount时在fatfs的路径要使用大写,此受限于当前文件系统设计。
This commit is contained in:
@ -196,29 +196,29 @@ pub trait Clocksource: Send + Sync + Debug {
|
||||
fn read(&self) -> CycleNum;
|
||||
/// optional function to enable the clocksource
|
||||
fn enable(&self) -> Result<i32, SystemError> {
|
||||
return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP);
|
||||
return Err(SystemError::ENOSYS);
|
||||
}
|
||||
/// optional function to disable the clocksource
|
||||
fn disable(&self) -> Result<(), SystemError> {
|
||||
return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP);
|
||||
return Err(SystemError::ENOSYS);
|
||||
}
|
||||
/// vsyscall based read
|
||||
fn vread(&self) -> Result<CycleNum, SystemError> {
|
||||
return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP);
|
||||
return Err(SystemError::ENOSYS);
|
||||
}
|
||||
/// suspend function for the clocksource, if necessary
|
||||
fn suspend(&self) -> Result<(), SystemError> {
|
||||
return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP);
|
||||
return Err(SystemError::ENOSYS);
|
||||
}
|
||||
/// resume function for the clocksource, if necessary
|
||||
fn resume(&self) -> Result<(), SystemError> {
|
||||
return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP);
|
||||
return Err(SystemError::ENOSYS);
|
||||
}
|
||||
// 获取时钟源数据
|
||||
fn clocksource_data(&self) -> ClocksourceData;
|
||||
|
||||
fn update_clocksource_data(&self, _data: ClocksourceData) -> Result<(), SystemError> {
|
||||
return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP);
|
||||
return Err(SystemError::ENOSYS);
|
||||
}
|
||||
// 获取时钟源
|
||||
fn clocksource(&self) -> Arc<dyn Clocksource>;
|
||||
|
Reference in New Issue
Block a user