Home
last modified time | relevance | path

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

12

/DragonOS-0.1.7/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.c52 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/
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
/DragonOS-0.1.7/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.7/kernel/src/smp/
Dsmp.c50 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()
95memset((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/
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()
/DragonOS-0.1.7/kernel/src/libs/libUI/
Dtextui.c36 memset((window), 0, sizeof(struct textui_window_t)); in __textui_init_window()
64memset(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()
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.7/user/libs/libc/src/include/export/
Dstring.h9 void *memset(void *dst, unsigned char C, uint64_t size);
/DragonOS-0.1.7/kernel/src/mm/
Dslab.c44 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()
375memset(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()
Dmm.c113 memset(memory_management_struct.bmp, 0xff, memory_management_struct.bmp_len); in mm_init()
122memset(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()
Dmmap.c106 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()
Dvma.c187 memset(anon_vma, 0, sizeof(struct anon_vma_t)); in __anon_vma_create_alloc()
/DragonOS-0.1.7/kernel/src/driver/video/
Dvideo.c161 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/
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.7/kernel/src/process/
Dfork.c51 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()
Dprocess.c243 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(&regs, 0, sizeof(regs)); in kernel_thread()
/DragonOS-0.1.7/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.7/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.7/kernel/src/driver/usb/xhci/
Dxhci.c548 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/
Dhidparse.c56 memset(__spaces_buf, ' ', 32); in __spaces()
83 memset(parser, 0, sizeof(struct hid_parser)); in hid_reset_parser()

12