Home
last modified time | relevance | path

Searched refs:kfree (Results 1 – 25 of 35) sorted by relevance

12

/DragonOS-0.1.2/kernel/src/mm/
Dslab.c56 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 …]
Dallocator.rs1 use crate::include::bindings::bindings::{gfp_t, kfree, kmalloc, PAGE_2M_SIZE};
32 kfree(ptr as *mut ::core::ffi::c_void); in local_dealloc()
Dmmio-buddy.h55 kfree(region); in __mmio_buddy_release_addr_region()
Dvma.c40 kfree(vma); in vm_area_free()
241 kfree(anon_vma); in __anon_vma_free()
266 kfree(vma->anon_vma->page); in __anon_vma_del()
Dslab.h80 unsigned long kfree(void *address);
Dmmap.c281 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.2/kernel/src/filesystem/VFS/
Ddcache.c84 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()
DVFS.c166 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 …]
Dmount.c98 return kfree(mp); in mount_release_mountpoint()
/DragonOS-0.1.2/kernel/src/ipc/
Dpipe.c152 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.2/kernel/src/sched/
Dcompletion.c321 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.2/docs/kernel/core_api/
Dallocate-memory.md15 当内存空间不再被使用时,那么必须释放他们。若您使用的是`kmalloc()`分配的内存,那么您需要使用`kfree()`释放它。若是使用`alloc_pages()`分配的内存,则需要使用`free…
/DragonOS-0.1.2/kernel/src/filesystem/fat32/
Dfat32.c287 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 …]
Dfat_ent.c54 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.2/docs/kernel/sched/
Dwaiting.md93 | 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.2/kernel/src/driver/pci/
Dpci.c263 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.2/kernel/src/process/
Dkthread.c104 kfree(create); in __kthread_create_on_node()
328 kfree(kthread->full_name); in free_kthread_struct()
329 kfree(kthread); in free_kthread_struct()
Dprocess.c292 kfree(phys_2_virt(paddr)); in process_load_elf_file()
338 kfree(buf); in process_load_elf_file()
722 kfree(pcb->fds[i]); in process_exit_files()
771 kfree(phys_2_virt(pa)); in process_exit_mm()
781 kfree(current_pgd); in process_exit_mm()
787 kfree(pcb->mm); in process_exit_mm()
821 kfree(pcb); in process_release_pcb()
/DragonOS-0.1.2/kernel/src/filesystem/rootfs/
Drootfs.c16 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.2/kernel/src/libs/libUI/
Dscreen_manager.c53 kfree(buf); in __create_buffer()
151 kfree(ui); in scm_register_alloc()
264 kfree(buf); in scm_enable_double_buffer()
/DragonOS-0.1.2/kernel/src/libs/
Dwait_queue.c82 kfree(wait); in wait_queue_wakeup()
Dmutex.c92 kfree(wt); in mutex_unlock()
Dbitree.c195 kfree(to_delete); in bt_delete()
228 kfree(nd); in bt_destroy_tree()
/DragonOS-0.1.2/kernel/src/time/
Dtimer.c51 kfree(tmp); in do_timer_softirq()
/DragonOS-0.1.2/kernel/src/driver/usb/xhci/
Dxhci.c1051 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 …]

12