mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 08:06:32 +00:00
🐛 修复了无法正确地往文件写入数据的bug
This commit is contained in:
@ -127,8 +127,8 @@ struct vfs_file_operations_t
|
||||
{
|
||||
long (*open)(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr);
|
||||
long (*close)(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr);
|
||||
long (*read)(struct vfs_file_t *file_ptr, char *buf, uint64_t count, long *position);
|
||||
long (*write)(struct vfs_file_t *file_ptr, char *buf, uint64_t count, long *position);
|
||||
long (*read)(struct vfs_file_t *file_ptr, char *buf, int64_t count, long *position);
|
||||
long (*write)(struct vfs_file_t *file_ptr, char *buf, int64_t count, long *position);
|
||||
long (*lseek)(struct vfs_file_t *file_ptr, long offset, long origin);
|
||||
long (*ioctl)(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr, uint64_t cmd, uint64_t arg);
|
||||
};
|
||||
|
Reference in New Issue
Block a user