/* SPDX-License-Identifier: GPL-2.0-only */ #include #include mem_cache_t *proc_slab; mem_cache_t *thread_slab; void proc_init() { proc_slab = slab_create("proc_slab", sizeof(struct proc), 1 * MB, 8); thread_slab = slab_create("thread_slab", sizeof(struct thread), 1 * MB, 8); }