Searched refs:kzalloc (Results 1 – 14 of 14) sorted by relevance
/DragonOS-0.1.8/kernel/src/libs/ |
D | wait_queue.c | 26 wait_queue_node_t *wait = (wait_queue_node_t *)kzalloc(sizeof(wait_queue_node_t), 0); in wait_queue_sleep_on() 42 wait_queue_node_t *wait = (wait_queue_node_t *)kzalloc(sizeof(wait_queue_node_t), 0); in wait_queue_sleep_on_unlock() 57 wait_queue_node_t *wait = (wait_queue_node_t *)kzalloc(sizeof(wait_queue_node_t), 0); in wait_queue_sleep_on_interriptible()
|
D | mutex.c | 41 …struct mutex_waiter_t *waiter = (struct mutex_waiter_t *)kzalloc(sizeof(struct mutex_waiter_t), 0); in mutex_lock()
|
D | idr.c | 101 new_one = kzalloc(sizeof(struct idr_layer), gfp_mask); // 默认清空? in idr_preload() 850 bitmap = kzalloc(sizeof(struct ida_bitmap), gfp_mask); in ida_preload()
|
D | lz4.c | 206 #define ALLOC_AND_ZERO(s) kzalloc(s, 0)
|
/DragonOS-0.1.8/kernel/src/sched/ |
D | completion.c | 279 struct completion *one_to_one = kzalloc(sizeof(struct completion) * N, 0); in __test_completion() 280 struct completion *one_to_many = kzalloc(sizeof(struct completion), 0); in __test_completion() 281 struct completion *waiter_many_to_one = kzalloc(sizeof(struct completion) * N, 0); in __test_completion() 282 struct completion *worker_many_to_one = kzalloc(sizeof(struct completion) * N, 0); in __test_completion() 283 struct __test_data *waiter_data = kzalloc(sizeof(struct __test_data) * N, 0); in __test_completion() 284 struct __test_data *worker_data = kzalloc(sizeof(struct __test_data) * N, 0); in __test_completion() 335 struct completion *cmpl = kzalloc(sizeof(struct completion), 0); in completion_alloc()
|
/DragonOS-0.1.8/kernel/src/mm/ |
D | slab.h | 21 extern void *kzalloc(size_t size, gfp_t gfp);
|
D | c_adapter.rs | 67 pub unsafe extern "C" fn kzalloc(size: usize, _gfp: gfp_t) -> usize { in kzalloc() function
|
/DragonOS-0.1.8/kernel/src/common/ |
D | wait_queue.h | 69 wait_queue_node_t *wait = (wait_queue_node_t *)kzalloc(sizeof(wait_queue_node_t), 0); \ 73 wait_queue_node_t *wait = (wait_queue_node_t *)kzalloc(sizeof(wait_queue_node_t), 0); \
|
/DragonOS-0.1.8/kernel/src/process/ |
D | kthread.c | 54 struct kthread_create_info_t *create = kzalloc(sizeof(struct kthread_create_info_t), 0); in __kthread_create_on_node() 96 char *full_name = kzalloc(1024, 0); in __kthread_create_on_node() 303 struct kthread_info_t *kt = kzalloc(sizeof(struct kthread_info_t), 0); in kthread_set_worker_private()
|
D | fork.c | 42 tsk = (struct process_control_block *)kzalloc(STACK_SIZE, 0); in do_fork()
|
/DragonOS-0.1.8/docs/kernel/sched/ |
D | c_waiting.md | 99 | DECLARE_WAIT_ALLOC(name, pcb) | 使用`kzalloc`声明一个wait_queue节点,同时把pcb所代表的进程与该节点绑定,请记得使用kfree释放空间 | 100 | DECLARE_WAIT_ALLOC_SELF(name) | 使用`kzalloc`声明一个wait_queue节点,同时当前进程(即自身进程)与该节点绑定,请记得使用kfree释放…
|
/DragonOS-0.1.8/kernel/src/ |
D | main.c | 107 uchar *ptr = (uchar *)kzalloc(STACK_SIZE, 0) + STACK_SIZE; in system_initialize()
|
/DragonOS-0.1.8/kernel/src/libs/libUI/ |
D | screen_manager.c | 47 void* buf_vaddr = kzalloc(video_frame_buffer_info.size, 0); in __create_buffer()
|
/DragonOS-0.1.8/kernel/src/driver/mouse/ |
D | ps2_mouse.c | 204 …ps2_mouse_buf_ptr = (struct ps2_mouse_input_buffer *)kzalloc(sizeof(struct ps2_mouse_input_buffer)… in ps2_mouse_init()
|