c
if (!mem) {
    panic("mem is NULL\n");
}
spin_lock_init(&mem->lock);
