Home
last modified time | relevance | path

Searched defs:vfs_file_operations_t (Results 1 – 2 of 2) sorted by relevance

/DragonOS-0.1.8/kernel/src/filesystem/vfs/
DVFS.h183 struct vfs_file_operations_t struct
185 long (*open)(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr);
186 long (*close)(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr);
187 long (*read)(struct vfs_file_t *file_ptr, char *buf, int64_t count, long *position);
188 long (*write)(struct vfs_file_t *file_ptr, char *buf, int64_t count, long *position);
189 long (*lseek)(struct vfs_file_t *file_ptr, long offset, long origin);
190 … (*ioctl)(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr, uint64_t cmd, uint64_t arg);
192 long (*readdir)(struct vfs_file_t *file_ptr, void *dirent, vfs_filldir_t filler); // 读取文件
/DragonOS-0.1.8/kernel/src/driver/keyboard/
Dps2_keyboard.rs87 pub extern "C" fn ps2_keyboard_register(f_ops: &vfs_file_operations_t) { in ps2_keyboard_register()