Home
last modified time | relevance | path

Searched refs:filp (Results 1 – 5 of 5) sorted by relevance

/DragonOS-0.1.2/kernel/src/driver/tty/
Dtty.c15 long tty_open(struct vfs_index_node_t *inode, struct vfs_file_t *filp) in tty_open() argument
17 filp->private_data = &tty_private_data; in tty_open()
28 long tty_close(struct vfs_index_node_t *inode, struct vfs_file_t *filp) in tty_close() argument
30 filp->private_data = NULL; in tty_close()
43 long tty_ioctl(struct vfs_index_node_t *inode, struct vfs_file_t *filp, uint64_t cmd, uint64_t arg) in tty_ioctl() argument
62 long tty_read(struct vfs_file_t *filp, char *buf, int64_t count, long *position) in tty_read() argument
76 long tty_write(struct vfs_file_t *filp, char *buf, int64_t count, long *position) in tty_write() argument
/DragonOS-0.1.2/kernel/src/driver/keyboard/
Dps2_keyboard.c49 long ps2_keyboard_open(struct vfs_index_node_t *inode, struct vfs_file_t *filp) in ps2_keyboard_open() argument
51 filp->private_data = &kb_buf; in ps2_keyboard_open()
63 long ps2_keyboard_close(struct vfs_index_node_t *inode, struct vfs_file_t *filp) in ps2_keyboard_close() argument
65 filp->private_data = NULL; in ps2_keyboard_close()
79 long ps2_keyboard_ioctl(struct vfs_index_node_t *inode, struct vfs_file_t *filp, uint64_t cmd, uint… in ps2_keyboard_ioctl() argument
102 long ps2_keyboard_read(struct vfs_file_t *filp, char *buf, int64_t count, long *position) in ps2_keyboard_read() argument
121 long ps2_keyboard_write(struct vfs_file_t *filp, char *buf, int64_t count, long *position) in ps2_keyboard_write() argument
/DragonOS-0.1.2/kernel/src/process/
Dprocess.c135 struct vfs_file_t *filp = NULL; in process_open_exec_file() local
145 filp = (struct vfs_file_t *)kmalloc(sizeof(struct vfs_file_t), 0); in process_open_exec_file()
146 if (filp == NULL) in process_open_exec_file()
149 filp->position = 0; in process_open_exec_file()
150 filp->mode = 0; in process_open_exec_file()
151 filp->dEntry = dentry; in process_open_exec_file()
152 filp->mode = ATTR_READ_ONLY; in process_open_exec_file()
153 filp->file_ops = dentry->dir_inode->file_ops; in process_open_exec_file()
155 return filp; in process_open_exec_file()
168 struct vfs_file_t *filp = process_open_exec_file(path); in process_load_elf_file() local
[all …]
/DragonOS-0.1.2/kernel/src/debug/
Dkallsyms.c50 int read_symbol(FILE *filp, struct kernel_symbol_entry_t *entry) in read_symbol() argument
54 int retval = fscanf(filp, "%llx %c %510s\n", &entry->vaddr, &entry->type, str); in read_symbol()
62 fgets(str, 512, filp); in read_symbol()
78 void read_map(FILE *filp) in read_map() argument
81 while (!feof(filp)) in read_map()
92 if (read_symbol(filp, &symbol_table[entry_count]) == 0) in read_map()
/DragonOS-0.1.2/kernel/src/syscall/
Dsyscall.c437 struct vfs_file_t *filp = current_pcb->fds[fd]; in sys_getdents() local
438 if (filp == NULL) in sys_getdents()
442 if (filp->file_ops && filp->file_ops->readdir) in sys_getdents()
443 retval = filp->file_ops->readdir(filp, dirent, &vfs_fill_dirent); in sys_getdents()