Home
last modified time | relevance | path

Searched refs:memset (Results 1 – 24 of 24) sorted by relevance

/DragonOS-0.1.8/user/apps/shell/
Dshell.c46 memset(shell_current_path, 0, 3); in main_loop()
57 memset(input_buffer, 0, INPUT_BUFFER_SIZE); in main_loop()
71 memset(history_commands, 0, sizeof(history_commands)); in main_loop()
114 memset(buf, 0, sizeof(buf)); in clear_command()
204 memset(history_commands[current_command_index - 1], 0, in shell_readline()
237 memset(history_commands[count_history], 0, sizeof(history_commands[count_history])); in shell_readline()
242memset(history_commands[current_command_index], 0, sizeof(history_commands[current_command_index])… in shell_readline()
Dcmd.c63 memset(file_path, 0, *result_path_len + 2); in get_target_filepath()
79 memset(file_path, 0, *result_path_len + 2); in get_target_filepath()
184 memset(new_path, 0, dest_len + 2); in shell_cmd_cd()
218 memset(new_path, 0, sizeof(new_path)); in shell_cmd_cd()
337 memset(buf, 0, 512); in shell_cmd_cat()
641 memset(*argv, 0, sizeof(char **) * (*argc + 1)); in parse_command()
/DragonOS-0.1.8/user/libs/libc/src/
Ddirent.c29 memset(dirp, 0, sizeof(struct DIR)); in opendir()
70 memset((dir->buf), 0, DIR_BUF_SIZE); in readdir()
Dstdio.c11 memset(buf, 0, bufsize); in fprintf()
71 memset(stream, 0, sizeof(FILE)); in fopen()
Dstring.c36 void *memset(void *dst, unsigned char C, uint64_t size) in memset() function
Dmalloc.c159 memset(new_ck, 0, sizeof(malloc_mem_chunk_t)); in malloc_enlarge()
/DragonOS-0.1.8/user/apps/test_relibc/
Dmain.c75 memset(buffer, 0, sizeof(buffer)); in tcp_server()
118 memset(buffer, 0, sizeof(buffer)); in udp_server()
162 memset(recvbuf, 0, sizeof(recvbuf)); in tcp_client()
186 memset(recvbuf, 0, sizeof(recvbuf)); in tcp_client()
187 memset(sendbuf, 0, sizeof(sendbuf)); in tcp_client()
/DragonOS-0.1.8/kernel/src/smp/
Dsmp.c60 memset((void *)SMP_IPI_desc, 0, sizeof(irq_desc_t) * SMP_IRQ_NUM); in smp_init()
105 memset((void *)cpu_core_info[current_starting_cpu].stack_start - STACK_SIZE, 0, STACK_SIZE); in smp_init()
106memset((void *)cpu_core_info[current_starting_cpu].ist_stack_start - STACK_SIZE, 0, STACK_SIZE); in smp_init()
117 memset(&initial_tss[current_starting_cpu], 0, sizeof(struct tss_struct)); in smp_init()
172 memset(current_pcb, 0, sizeof(struct process_control_block)); in smp_ap_start()
/DragonOS-0.1.8/kernel/src/libs/
Dkfifo.c17 memset(fifo, 0, sizeof(struct kfifo_t)); in kfifo_alloc()
37 memset(fifo, 0, sizeof(struct kfifo_t)); in kfifo_init()
150 memset(fifo, 0, sizeof(struct kfifo_t)); in kfifo_free_alloc()
Dbitree.c26 memset((void *)root, 0, sizeof(struct bt_root_t)); in bt_create_tree()
47 memset((void *)node, 0, sizeof(struct bt_node_t)); in bt_create_node()
Didr.c23 memset(idp, 0, sizeof(struct idr)); in idr_init()
820 memset(ida_p, 0, sizeof(struct ida)); in ida_init()
Dlz4.c211 #define MEM_INIT(p, v, s) memset((p), (v), (s))
/DragonOS-0.1.8/kernel/src/libs/libUI/
Dtextui.c39 memset((window), 0, sizeof(struct textui_window_t)); in __textui_init_window()
67memset(vline, 0, sizeof(struct textui_vline_chromatic_t)); …
150 memset(vline->chars, 0, sizeof(struct textui_char_chromatic_t) * window->chars_per_line); in __textui_new_line()
266 memset(window->vlines.chromatic[window->vline_operating].chars, 0, in textui_putchar_window()
321 memset(&textui_framework, 0, sizeof(struct scm_ui_framework_t)); in textui_init()
322 memset(&__private_info, 0, sizeof(struct textui_private_info_t)); in textui_init()
Dscreen_manager.c35 memset(buf, 0, sizeof(struct scm_buffer_info_t)); in __create_buffer()
137 memset(ui, 0, sizeof(struct scm_ui_framework_t)); in scm_register_alloc()
/DragonOS-0.1.8/user/libs/libc/src/include/export/
Dstring.h9 void *memset(void *dst, unsigned char C, uint64_t size);
/DragonOS-0.1.8/kernel/src/driver/video/
Dvideo.c154 memset(&video_frame_buffer_info, 0, sizeof(struct scm_buffer_info_t)); in video_init()
155 memset(&__fb_info, 0, sizeof(struct multiboot_tag_framebuffer_info_t)); in video_init()
/DragonOS-0.1.8/kernel/src/exception/
Dirq.c207 memset(p->irq_name, 0, namelen); in irq_register()
255 memset((void *)interrupt_desc, 0, sizeof(irq_desc_t) * IRQ_NUM); in irq_init()
/DragonOS-0.1.8/kernel/src/driver/pci/
Dpci_irq.c54 memset(p->irq_name, 0, namelen); in c_irq_install()
/DragonOS-0.1.8/kernel/src/driver/mouse/
Dps2_mouse.c23 memset(ps2_mouse_buf_ptr->buffer, 0, ps2_mouse_buffer_size); in ps2_mouse_clear_buf()
208 memset(ps2_mouse_buf_ptr->buffer, 0, ps2_mouse_buffer_size); in ps2_mouse_init()
/DragonOS-0.1.8/kernel/src/process/
Dfork.c52 memset(tsk, 0, sizeof(struct process_control_block)); in do_fork()
247 memset(thd, 0, sizeof(struct thread_struct)); in process_copy_thread()
Dprocess.c281 memset(&regs, 0, sizeof(regs)); in kernel_thread()
/DragonOS-0.1.8/kernel/src/common/
Didr.h80 memset(name, 0, sizeof(struct idr_layer));
Dglib.h68 void *memset(void *dst, unsigned char C, ul size) in memset() function
/DragonOS-0.1.8/kernel/src/driver/hid/
Dhidparse.c56 memset(__spaces_buf, ' ', 32); in __spaces()
83 memset(parser, 0, sizeof(struct hid_parser)); in hid_reset_parser()