Home
last modified time | relevance | path

Searched refs:vfs_file_t (Results 1 – 4 of 4) sorted by relevance

/DragonOS-0.1.7/kernel/src/filesystem/vfs/
DVFS.h101 struct vfs_file_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 …long (*ioctl)(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr, uint64_t cmd, uint64_t …
192 long (*readdir)(struct vfs_file_t *file_ptr, void *dirent, vfs_filldir_t filler); // 读取文件夹
/DragonOS-0.1.7/kernel/src/driver/keyboard/
Dps2_keyboard.c50 long ps2_keyboard_open(struct vfs_index_node_t *inode, struct vfs_file_t *filp) in ps2_keyboard_open()
63 long ps2_keyboard_close(struct vfs_index_node_t *inode, struct vfs_file_t *filp) in ps2_keyboard_close()
78 long ps2_keyboard_ioctl(struct vfs_index_node_t *inode, struct vfs_file_t *filp, uint64_t cmd, uint… in ps2_keyboard_ioctl()
101 long ps2_keyboard_read(struct vfs_file_t *filp, char *buf, int64_t count, long *position) in ps2_keyboard_read()
120 long ps2_keyboard_write(struct vfs_file_t *filp, char *buf, int64_t count, long *position) in ps2_keyboard_write()
Dps2_keyboard.rs11 include::bindings::bindings::{vfs_file_operations_t, vfs_file_t, vfs_index_node_t},
104 0 as *mut vfs_file_t, in read_at()
133 let _ = unsafe { func(0 as *mut vfs_index_node_t, 0 as *mut vfs_file_t) }; in open()
147 let _ = unsafe { func(0 as *mut vfs_index_node_t, 0 as *mut vfs_file_t) }; in close()
/DragonOS-0.1.7/kernel/src/process/
Dprocess.h159 int process_fd_alloc(struct vfs_file_t *file);