/DragonOS-0.1.3/kernel/src/mm/ |
D | slab.c | 56 kfree(slab_pool); in slab_create() 77 kfree(slab_pool->cache_pool_entry); in slab_create() 78 kfree(slab_pool); in slab_create() 104 kfree(slab_pool->cache_pool_entry); in slab_create() 105 kfree(slab_pool); in slab_create() 139 kfree(tmp_slab_obj->bmp); in slab_destroy() 145 kfree(tmp_slab_obj); in slab_destroy() 148 kfree(slab_obj_ptr->bmp); in slab_destroy() 151 kfree(slab_obj_ptr); in slab_destroy() 152 kfree(slab_pool); in slab_destroy() [all …]
|
D | allocator.rs | 1 use crate::include::bindings::bindings::{gfp_t, kfree, kmalloc, PAGE_2M_SIZE}; 32 kfree(ptr as *mut ::core::ffi::c_void); in local_dealloc()
|
D | mmio-buddy.h | 55 kfree(region); in __mmio_buddy_release_addr_region()
|
D | vma.c | 40 kfree(vma); in vm_area_free() 241 kfree(anon_vma); in __anon_vma_free() 266 kfree(vma->anon_vma->page); in __anon_vma_del()
|
D | slab.h | 80 unsigned long kfree(void *address);
|
D | mmap.c | 281 kfree(pt_ptr); in mm_unmap_proc_table() 296 kfree(pd_ptr); in mm_unmap_proc_table() 303 kfree(pdpt_ptr); in mm_unmap_proc_table() 339 kfree(vma); in mm_create_vma()
|
/DragonOS-0.1.3/kernel/src/filesystem/vfs/ |
D | dcache.c | 84 kfree(dentry); in vfs_dentry_put() 103 kfree(dentry); in vfs_dentry_put() 128 kfree(inode->private_inode_info); in vfs_free_inode() 129 kfree(inode); in vfs_free_inode()
|
D | VFS.c | 166 kfree(tmpname); in vfs_path_walk() 183 kfree(dentry->name); in vfs_path_walk() 184 kfree(dentry); in vfs_path_walk() 289 kfree(buf); in vfs_mkdir() 292 kfree(buf); in vfs_mkdir() 430 kfree(path); in do_open() 459 kfree(path); in do_open() 481 kfree(path); in do_open() 509 kfree(file_ptr); in do_open() 527 kfree(file_ptr); in do_open() [all …]
|
D | mount.c | 98 return kfree(mp); in mount_release_mountpoint()
|
/DragonOS-0.1.3/kernel/src/ipc/ |
D | pipe.c | 152 kfree(pipe_ptr); in sys_pipe() 153 kfree(read_file); in sys_pipe() 161 kfree(pipe_ptr); in sys_pipe() 162 kfree(read_file); in sys_pipe() 163 kfree(write_file); in sys_pipe()
|
/DragonOS-0.1.3/docs/kernel/core_api/ |
D | allocate-memory.md | 15 当内存空间不再被使用时,那么必须释放他们。若您使用的是`kmalloc()`分配的内存,那么您需要使用`kfree()`释放它。若是使用`alloc_pages()`分配的内存,则需要使用`free…
|
/DragonOS-0.1.3/kernel/src/sched/ |
D | completion.c | 321 kfree(one_to_one); in __test_completion() 322 kfree(one_to_many); in __test_completion() 323 kfree(waiter_many_to_one); in __test_completion() 324 kfree(worker_many_to_one); in __test_completion() 325 kfree(waiter_data); in __test_completion() 326 kfree(worker_data); in __test_completion()
|
/DragonOS-0.1.3/kernel/src/filesystem/fat32/ |
D | fat32.c | 287 kfree(buf); in __fat32_search_long_short() 294 kfree(buf); in __fat32_search_long_short() 363 kfree(sinfo.buffer); in fat32_lookup() 468 kfree(sb->private_sb_info); in fat32_put_superblock() 469 kfree(sb->root->dir_inode->private_inode_info); in fat32_put_superblock() 470 kfree(sb->root->dir_inode); in fat32_put_superblock() 471 kfree(sb->root); in fat32_put_superblock() 472 kfree(sb); in fat32_put_superblock() 511 kfree(buf); in fat32_write_inode() 646 kfree(tmp_buffer); in fat32_read() [all …]
|
D | fat_ent.c | 54 kfree(buf); in fat32_alloc_clusters() 169 kfree(buf); in fat32_write_FAT_entry() 261 kfree(tmp_buf); in fat32_find_empty_dentry()
|
/DragonOS-0.1.3/docs/kernel/sched/ |
D | waiting.md | 93 | DECLARE_WAIT_ALLOC(name, pcb) | 使用`kzalloc`声明一个wait_queue节点,同时把pcb所代表的进程与该节点绑定,请记得使用kfree释放空间 | 94 | DECLARE_WAIT_ALLOC_SELF(name) | 使用`kzalloc`声明一个wait_queue节点,同时当前进程(即自身进程)与该节点绑定,请记得使用kfree释放… 121    在`wait_queue.h`中的`wait_queue_wakeup`函数直接kfree掉了wait_node节点。对于在栈上的wait_node,您可以选择`wait_…
|
/DragonOS-0.1.3/kernel/src/driver/pci/ |
D | pci.c | 263 kfree(common_header); in pci_read_header() 303 kfree(common_header); in pci_read_header() 348 kfree(header); in pci_checkDevice() 367 kfree(tmp_header); in pci_checkDevice() 371 kfree(header); in pci_checkDevice() 417 kfree(tmp_header); in pci_checkAllBuses() 423 kfree(tmp_header); in pci_checkAllBuses() 426 kfree(header); in pci_checkAllBuses()
|
/DragonOS-0.1.3/kernel/src/filesystem/rootfs/ |
D | rootfs.c | 16 kfree(dentry->name); in __release_dentry() 17 kfree(dentry); in __release_dentry() 226 kfree(rootfs_sb.root->dir_inode); in rootfs_umount()
|
/DragonOS-0.1.3/kernel/src/process/ |
D | kthread.c | 104 kfree(create); in __kthread_create_on_node() 334 kfree(kthread->full_name); in free_kthread_struct() 335 kfree(kthread); in free_kthread_struct()
|
D | process.c | 304 kfree(phys_2_virt(paddr)); in process_load_elf_file() 350 kfree(buf); in process_load_elf_file() 743 kfree(pcb->fds[i]); in process_exit_files() 792 kfree(phys_2_virt(pa)); in process_exit_mm() 802 kfree(current_pgd); in process_exit_mm() 808 kfree(pcb->mm); in process_exit_mm() 842 kfree(pcb); in process_release_pcb()
|
/DragonOS-0.1.3/kernel/src/libs/libUI/ |
D | screen_manager.c | 53 kfree(buf); in __create_buffer() 151 kfree(ui); in scm_register_alloc() 264 kfree(buf); in scm_enable_double_buffer()
|
/DragonOS-0.1.3/kernel/src/libs/ |
D | wait_queue.c | 82 kfree(wait); in wait_queue_wakeup()
|
D | mutex.c | 93 kfree(wt); in mutex_unlock()
|
D | bitree.c | 195 kfree(to_delete); in bt_delete() 228 kfree(nd); in bt_destroy_tree()
|
/DragonOS-0.1.3/kernel/src/time/ |
D | timer.c | 51 kfree(tmp); in do_timer_softirq()
|
/DragonOS-0.1.3/kernel/src/driver/usb/xhci/ |
D | xhci.c | 1051 kfree((void *)input_ctx_buffer); in xhci_set_address() 1295 kfree((void *)status_buf_vaddr); in xhci_control_in() 1297 kfree((void *)data_buf_vaddr); in xhci_control_in() 1358 kfree((void *)status_buf_vaddr); in xhci_control_out() 1360 kfree((void *)data_buf_vaddr); in xhci_control_out() 1783 kfree((void *)input_ctx_buffer); in xhci_configure_endpoint() 1861 kfree(hid_report_data); in xhci_configure_port() 1880 kfree(hid_report_data); in xhci_configure_port() 1886 kfree(full_conf); in xhci_configure_port() 1953 kfree(buf); in xhci_hc_init_intr() [all …]
|