/DragonOS-0.1.7/user/apps/shell/ |
D | shell.c | 46 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() 242 …memset(history_commands[current_command_index], 0, sizeof(history_commands[current_command_index])… in shell_readline()
|
D | cmd.c | 52 memset(file_path, 0, *result_path_len + 2); in get_target_filepath() 68 memset(file_path, 0, *result_path_len + 2); in get_target_filepath() 173 memset(new_path, 0, dest_len + 2); in shell_cmd_cd() 207 memset(new_path, 0, sizeof(new_path)); in shell_cmd_cd() 326 memset(buf, 0, 512); in shell_cmd_cat() 630 memset(*argv, 0, sizeof(char **) * (*argc)); in parse_command()
|
/DragonOS-0.1.7/user/libs/libc/src/ |
D | dirent.c | 29 memset(dirp, 0, sizeof(struct DIR)); in opendir() 70 memset((dir->buf), 0, DIR_BUF_SIZE); in readdir()
|
D | stdio.c | 11 memset(buf, 0, bufsize); in fprintf() 71 memset(stream, 0, sizeof(FILE)); in fopen()
|
D | string.c | 36 void *memset(void *dst, unsigned char C, uint64_t size) in memset() function
|
/DragonOS-0.1.7/user/apps/test_relibc/ |
D | main.c | 75 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.7/kernel/src/smp/ |
D | smp.c | 50 memset((void *)SMP_IPI_desc, 0, sizeof(irq_desc_t) * SMP_IRQ_NUM); in smp_init() 94 memset((void *)cpu_core_info[current_starting_cpu].stack_start - STACK_SIZE, 0, STACK_SIZE); in smp_init() 95 … memset((void *)cpu_core_info[current_starting_cpu].ist_stack_start - STACK_SIZE, 0, STACK_SIZE); in smp_init() 106 memset(&initial_tss[current_starting_cpu], 0, sizeof(struct tss_struct)); in smp_init() 162 memset(current_pcb, 0, sizeof(struct process_control_block)); in smp_ap_start()
|
/DragonOS-0.1.7/kernel/src/libs/ |
D | kfifo.c | 17 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()
|
D | bitree.c | 26 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()
|
/DragonOS-0.1.7/kernel/src/libs/libUI/ |
D | textui.c | 36 memset((window), 0, sizeof(struct textui_window_t)); in __textui_init_window() 64 …memset(vline, 0, sizeof(struct textui_vline_chromatic_t)); … 144 memset(vline->chars, 0, sizeof(struct textui_char_chromatic_t) * window->chars_per_line); in __textui_new_line() 253 memset(window->vlines.chromatic[window->vline_operating].chars, 0, in textui_putchar_window() 308 memset(&textui_framework, 0, sizeof(struct scm_ui_framework_t)); in textui_init() 309 memset(&__private_info, 0, sizeof(struct textui_private_info_t)); in textui_init()
|
D | screen_manager.c | 35 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.7/user/libs/libc/src/include/export/ |
D | string.h | 9 void *memset(void *dst, unsigned char C, uint64_t size);
|
/DragonOS-0.1.7/kernel/src/mm/ |
D | slab.c | 44 memset(slab_pool, 0, sizeof(struct slab)); in slab_create() 59 memset(slab_pool->cache_pool_entry, 0, sizeof(struct slab_obj)); in slab_create() 109 memset(slab_pool->cache_pool_entry->bmp, 0, slab_pool->cache_pool_entry->bmp_len); in slab_create() 180 memset(tmp_slab_obj, 0, sizeof(struct slab_obj)); in slab_malloc() 210 memset(tmp_slab_obj->bmp, 0, tmp_slab_obj->bmp_len); in slab_malloc() 375 …memset(kmalloc_cache_group[i].cache_pool_entry->bmp, 0xff, kmalloc_cache_group[i].cache_pool_entry… in slab_init() 484 memset(slab_obj_ptr->bmp, 0xff, slab_obj_ptr->bmp_len); in kmalloc_create_slab_obj() 514 memset(slab_obj_ptr->bmp, 0xff, slab_obj_ptr->bmp_len); in kmalloc_create_slab_obj() 620 memset(result, 0, size); in kmalloc()
|
D | mm.c | 113 memset(memory_management_struct.bmp, 0xff, memory_management_struct.bmp_len); in mm_init() 122 …memset(memory_management_struct.pages_struct, 0x00, memory_management_struct.pages_struct_len); //… in mm_init() 134 memset(memory_management_struct.zones_struct, 0x00, memory_management_struct.zones_struct_len); in mm_init() 511 memset(pdpt, 0, PAGE_4K_SIZE); in page_table_init()
|
D | mmap.c | 106 memset(virt_addr, 0, PAGE_4K_SIZE); in mm_map_proc_page_table() 123 memset(virt_addr, 0, PAGE_4K_SIZE); in mm_map_proc_page_table() 144 memset(vaddr, 0, PAGE_4K_SIZE); in mm_map_proc_page_table()
|
D | vma.c | 187 memset(anon_vma, 0, sizeof(struct anon_vma_t)); in __anon_vma_create_alloc()
|
/DragonOS-0.1.7/kernel/src/driver/video/ |
D | video.c | 161 memset(&video_frame_buffer_info, 0, sizeof(struct scm_buffer_info_t)); in video_init() 162 memset(&__fb_info, 0, sizeof(struct multiboot_tag_framebuffer_info_t)); in video_init()
|
/DragonOS-0.1.7/kernel/src/exception/ |
D | irq.c | 207 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.7/kernel/src/process/ |
D | fork.c | 51 memset(tsk, 0, sizeof(struct process_control_block)); in do_fork() 199 memset(new_mms, 0, sizeof(struct mm_struct)); in process_copy_mm() 208 memset(phys_2_virt(new_mms->pgd), 0, PAGE_4K_SIZE / 2); in process_copy_mm() 325 memset(thd, 0, sizeof(struct thread_struct)); in process_copy_thread()
|
D | process.c | 243 memset(buf, 0, PAGE_4K_SIZE); in process_load_elf_file() 305 memset((void *)virt_base, 0, PAGE_2M_SIZE); in process_load_elf_file() 327 memset((void *)(virt_base + off), 0, PAGE_4K_SIZE); in process_load_elf_file() 390 memset((void *)(current_pcb->mm->stack_start - PAGE_2M_SIZE), 0, PAGE_2M_SIZE); in process_load_elf_file() 424 memset(new_mms, 0, sizeof(struct mm_struct)); in do_execve() 431 memset(phys_2_virt(new_mms->pgd), 0, PAGE_4K_SIZE / 2); in do_execve() 680 memset(®s, 0, sizeof(regs)); in kernel_thread()
|
/DragonOS-0.1.7/kernel/src/driver/mouse/ |
D | ps2_mouse.c | 23 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.7/kernel/src/common/ |
D | idr.h | 80 memset(name, 0, sizeof(struct idr_layer));
|
D | glib.h | 68 void *memset(void *dst, unsigned char C, ul size) in memset() function
|
/DragonOS-0.1.7/kernel/src/driver/usb/xhci/ |
D | xhci.c | 548 memset((void *)vaddr, 0, total_size); in xhci_create_ring() 569 memset((void *)table_vaddr, 0, 64); in xhci_create_event_ring() 577 memset((void *)seg_vaddr, 0, trbs * sizeof(struct xhci_TRB_t)); in xhci_create_event_ring() 632 memset(&msi_desc, 0, sizeof(struct msi_desc_t)); in xhci_hc_irq_install() 941 memset(&ep_ctx, 0, sizeof(struct xhci_ep_context_t)); in xhci_initialize_ep() 1138 memset(&trb, 0, sizeof(struct xhci_TRB_data_stage_t *)); in xhci_data_stage() 1276 memset((void *)status_buf_vaddr, 0, 16); in xhci_control_in() 1338 memset((void *)status_buf_vaddr, 0, 16); in xhci_control_out() 1586 memset(dev_desc, 0, sizeof(struct usb_device_desc)); in xhci_get_descriptor() 1950 memset(buf, 0, 16); in xhci_hc_init_intr() [all …]
|
/DragonOS-0.1.7/kernel/src/driver/hid/ |
D | hidparse.c | 56 memset(__spaces_buf, ' ', 32); in __spaces() 83 memset(parser, 0, sizeof(struct hid_parser)); in hid_reset_parser()
|