Home
last modified time | relevance | path

Searched defs:buf (Results 1 – 25 of 29) sorted by relevance

12

/DragonOS-0.1.2/user/apps/shell/
Dshell.c110 void clear_command(int count, char *buf) in clear_command()
122 void change_command(char *buf, int type) in change_command()
152 int shell_readline(int fd, char *buf) in shell_readline()
Dcmd_test.c12 char buf[512] = {0}; in shell_pipe_test() local
Dcmd.c251 struct dirent *buf = NULL; in shell_cmd_ls() local
317 char *buf = (char *)malloc(512); in shell_cmd_cat() local
595 int parse_command(char *buf, int *argc, char ***argv) in parse_command()
/DragonOS-0.1.2/kernel/src/libs/libUI/
Dscreen_manager.c32 …struct scm_buffer_info_t *buf = (struct scm_buffer_info_t *)kmalloc(sizeof(struct scm_buffer_info_… in __create_buffer() local
63 static int __destroy_buffer(struct scm_buffer_info_t *buf) in __destroy_buffer()
255 struct scm_buffer_info_t *buf = __create_buffer(SCM_BF_DB | SCM_BF_PIXEL); in scm_enable_double_buffer() local
Dtextui.c69 int textui_install_handler(struct scm_buffer_info_t *buf) in textui_install_handler()
92 int textui_change_handler(struct scm_buffer_info_t *buf) in textui_change_handler()
Dscreen_manager.h49 struct scm_buffer_info_t *buf; member
/DragonOS-0.1.2/kernel/src/libs/
Dprintk.c54 static int __do_vsprintf(char *buf, const char *fmt, int buf_size, va_list args) in __do_vsprintf()
364 int vsprintf(char *buf, const char *fmt, va_list args) in vsprintf()
378 int vsnprintf(char *buf, const char *fmt, int buf_size, va_list args) in vsnprintf()
600 char buf[4096]; // vsprintf()的缓冲区 in printk_color() local
617 int sprintk(char *buf, const char *fmt, ...) in sprintk()
Dunistd.c26 unsigned char buf[32]; in swab() local
/DragonOS-0.1.2/kernel/src/filesystem/
DMBR.c14 int MBR_read_partition_table(struct blk_gendisk *gd, void *buf) in MBR_read_partition_table()
/DragonOS-0.1.2/user/libs/libc/src/
Dunistd.c28 ssize_t read(int fd, void *buf, size_t count) in read()
41 ssize_t write(int fd, void const *buf, size_t count) in write()
183 unsigned char buf[32]; in swab() local
Dprintf.c42 char buf[4096]; in printf() local
53 int sprintf(char *buf, const char *fmt, ...) in sprintf()
72 int vsprintf(char *buf, const char *fmt, va_list args) in vsprintf()
Ddirent.h23 char buf[DIR_BUF_SIZE]; member
/DragonOS-0.1.2/kernel/src/ipc/
Dpipe.c27 char buf[PIPE_BUFF_SIZE]; member
30 long pipe_read(struct vfs_file_t *file_ptr, char *buf, in pipe_read()
63 long pipe_write(struct vfs_file_t *file_ptr, char *buf, in pipe_write()
/DragonOS-0.1.2/kernel/src/driver/tty/
Dtty.c62 long tty_read(struct vfs_file_t *filp, char *buf, int64_t count, long *position) in tty_read()
76 long tty_write(struct vfs_file_t *filp, char *buf, int64_t count, long *position) in tty_write()
/DragonOS-0.1.2/kernel/src/driver/disk/
Data.c24 unsigned char buf[64]; in ata_disk_handler() local
/DragonOS-0.1.2/kernel/src/filesystem/fat32/
Dfat_ent.c27 uint32_t *buf = (uint32_t *)kzalloc(fsbi->bytes_per_sec, 0); in fat32_alloc_clusters() local
132 uint32_t buf[256]; in fat32_read_FAT_entry() local
157 uint32_t *buf = kzalloc(fsbi->bytes_per_sec, 0); in fat32_write_FAT_entry() local
193 uint8_t *buf = kzalloc(fsbi->bytes_per_clus, 0); in fat32_find_empty_dentry() local
Dfat32.c63 uint8_t *buf = kzalloc(fsbi->bytes_per_clus, 0); in __fat32_search_long_short() local
376 uint8_t buf[512] = {0}; in fat32_read_superblock() local
495 struct fat32_Directory_t *buf = (struct fat32_Directory_t *)kmalloc(fsbi->bytes_per_clus, 0); in fat32_write_inode() local
573 long fat32_read(struct vfs_file_t *file_ptr, char *buf, int64_t count, long *position) in fat32_read()
662 long fat32_write(struct vfs_file_t *file_ptr, char *buf, int64_t count, long *position) in fat32_write()
1032 void *buf = kmalloc(fsbi->bytes_per_clus, 0); in fat32_mkdir() local
1163 unsigned char *buf = (unsigned char *)kzalloc(fsbi->bytes_per_clus, 0); in fat32_readdir() local
/DragonOS-0.1.2/kernel/src/driver/keyboard/
Dps2_keyboard.c102 long ps2_keyboard_read(struct vfs_file_t *filp, char *buf, int64_t count, long *position) in ps2_keyboard_read()
121 long ps2_keyboard_write(struct vfs_file_t *filp, char *buf, int64_t count, long *position) in ps2_keyboard_write()
/DragonOS-0.1.2/kernel/src/filesystem/VFS/
DVFS.c215 int vfs_fill_dirent(void *buf, ino_t d_ino, char *name, int namelen, unsigned char type, off_t offs… in vfs_fill_dirent()
274 char *buf = (char *)kzalloc(last_slash + 2, 0); in vfs_mkdir() local
659 char *buf = (char *)kzalloc(last_slash + 2, 0); in vfs_rmdir() local
811 char *buf = (char *)kzalloc(last_slash + 1, 0); in do_unlink_at() local
/DragonOS-0.1.2/kernel/src/driver/video/
Dvideo.c128 int video_set_refresh_target(struct scm_buffer_info_t *buf) in video_set_refresh_target()
/DragonOS-0.1.2/kernel/src/ktest/
Dtest-kfifo.c16 void *buf = kmalloc(fifo_size, 0); in ktest_kfifo_case0_1() local
/DragonOS-0.1.2/kernel/src/driver/disk/ahci/
Dahci.c339 …atic bool ahci_read(HBA_PORT *port, uint32_t startl, uint32_t starth, uint32_t count, uint64_t buf) in ahci_read()
434 uint64_t buf) in ahci_write()
652 …g ahci_transfer(struct blk_gendisk *gd, long cmd, uint64_t base_addr, uint64_t count, uint64_t buf) in ahci_transfer()
/DragonOS-0.1.2/kernel/src/filesystem/rootfs/
Drootfs.c46 static long rootfs_read(struct vfs_file_t *file_ptr, char *buf, int64_t count, long *position) { re… in rootfs_read()
47 static long rootfs_write(struct vfs_file_t *file_ptr, char *buf, int64_t count, long *position) { r… in rootfs_write()
/DragonOS-0.1.2/kernel/src/syscall/
Dsyscall.c155 void *buf = (void *)regs->r9; in sys_read() local
195 void *buf = (void *)regs->r9; in sys_write() local
/DragonOS-0.1.2/kernel/src/filesystem/devfs/
Ddevfs.c79 static long devfs_read(struct vfs_file_t *file_ptr, char *buf, int64_t count, long *position) { ret… in devfs_read()
80 static long devfs_write(struct vfs_file_t *file_ptr, char *buf, int64_t count, long *position) { re… in devfs_write()

12