new:chardev的挂载

This commit is contained in:
fslongjin
2022-09-10 00:18:18 +08:00
parent 7d510a2f86
commit ef7d20c0fb
16 changed files with 412 additions and 75 deletions

View File

@ -26,4 +26,12 @@ int mount_init();
* @param new_dentry 待挂载的新的dentry(需使用vfs_alloc_dentry来分配)
* @return int 错误码
*/
int do_mount(struct vfs_dir_entry_t *old_dentry, struct vfs_dir_entry_t *new_dentry);
int do_mount(struct vfs_dir_entry_t *old_dentry, struct vfs_dir_entry_t *new_dentry);
/**
* @brief 取消某个文件系统的挂载
*
* @param dentry 对应文件系统的根dentry
* @return int 错误码
*/
int do_umount(struct vfs_dir_entry_t* dentry);