Home
last modified time | relevance | path

Searched refs:kzalloc (Results 1 – 14 of 14) sorted by relevance

/DragonOS-0.1.8/kernel/src/libs/
Dwait_queue.c26 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()
Dmutex.c41 …struct mutex_waiter_t *waiter = (struct mutex_waiter_t *)kzalloc(sizeof(struct mutex_waiter_t), 0); in mutex_lock()
Didr.c101 new_one = kzalloc(sizeof(struct idr_layer), gfp_mask); // 默认清空? in idr_preload()
850 bitmap = kzalloc(sizeof(struct ida_bitmap), gfp_mask); in ida_preload()
Dlz4.c206 #define ALLOC_AND_ZERO(s) kzalloc(s, 0)
/DragonOS-0.1.8/kernel/src/sched/
Dcompletion.c279 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/
Dslab.h21 extern void *kzalloc(size_t size, gfp_t gfp);
Dc_adapter.rs67 pub unsafe extern "C" fn kzalloc(size: usize, _gfp: gfp_t) -> usize { in kzalloc() function
/DragonOS-0.1.8/kernel/src/common/
Dwait_queue.h69 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/
Dkthread.c54 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()
Dfork.c42 tsk = (struct process_control_block *)kzalloc(STACK_SIZE, 0); in do_fork()
/DragonOS-0.1.8/docs/kernel/sched/
Dc_waiting.md99 | 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/
Dmain.c107 uchar *ptr = (uchar *)kzalloc(STACK_SIZE, 0) + STACK_SIZE; in system_initialize()
/DragonOS-0.1.8/kernel/src/libs/libUI/
Dscreen_manager.c47 void* buf_vaddr = kzalloc(video_frame_buffer_info.size, 0); in __create_buffer()
/DragonOS-0.1.8/kernel/src/driver/mouse/
Dps2_mouse.c204 …ps2_mouse_buf_ptr = (struct ps2_mouse_input_buffer *)kzalloc(sizeof(struct ps2_mouse_input_buffer)… in ps2_mouse_init()