调整:devfs注册设备后,返回指向inode私有信息的指针

This commit is contained in:
fslongjin
2022-09-17 14:11:17 +08:00
parent 0435eb00b1
commit 0e624b1fcf
6 changed files with 41 additions and 21 deletions

View File

@ -14,6 +14,7 @@ void devfs_init();
* @param device_type 设备主类型
* @param sub_type 设备子类型
* @param file_ops 设备的文件操作接口
* @param ret_private_inode_info_ptr 返回的指向inode私有信息结构体的指针
* @return int 错误码
*/
int devfs_register_device(uint16_t device_type, uint16_t sub_type, struct vfs_file_operations_t *file_ops);
int devfs_register_device(uint16_t device_type, uint16_t sub_type, struct vfs_file_operations_t *file_ops, struct devfs_private_inode_info_t **ret_private_inode_info_ptr);