mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-19 13:16:31 +00:00
new:kzalloc
This commit is contained in:
8
kernel/common/gfp.h
Normal file
8
kernel/common/gfp.h
Normal file
@ -0,0 +1,8 @@
|
||||
#pragma once
|
||||
#include <common/sys/types.h>
|
||||
#include <common/compiler.h>
|
||||
/**
|
||||
* __GFP_ZERO: 获取内存的同时,将获取到的这块内存清空
|
||||
*
|
||||
*/
|
||||
#define __GFP_ZERO ((gfp_t)(1UL << 0))
|
Reference in New Issue
Block a user