new: rootfs

This commit is contained in:
fslongjin
2022-09-14 23:48:19 +08:00
parent c80f572db7
commit 72f9c430c5
12 changed files with 322 additions and 43 deletions

View File

@ -6,4 +6,14 @@
* @brief 初始化devfs
*
*/
void devfs_init();
void devfs_init();
/**
* @brief 在devfs中注册设备
*
* @param device_type 设备主类型
* @param sub_type 设备子类型
* @param file_ops 设备的文件操作接口
* @return int 错误码
*/
int devfs_register_device(uint16_t device_type, uint16_t sub_type, struct vfs_file_operations_t *file_ops);