Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/slab.h
Show All 33 Lines | |||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <sys/malloc.h> | #include <sys/malloc.h> | ||||
#include <sys/limits.h> | #include <sys/limits.h> | ||||
#include <linux/compat.h> | #include <linux/compat.h> | ||||
#include <linux/types.h> | #include <linux/types.h> | ||||
#include <linux/gfp.h> | #include <linux/gfp.h> | ||||
#include <linux/llist.h> | #include <linux/llist.h> | ||||
#include <linux/overflow.h> | |||||
MALLOC_DECLARE(M_KMALLOC); | MALLOC_DECLARE(M_KMALLOC); | ||||
#define kvmalloc(size, flags) kmalloc(size, flags) | #define kvmalloc(size, flags) kmalloc(size, flags) | ||||
#define kvzalloc(size, flags) kmalloc(size, (flags) | __GFP_ZERO) | #define kvzalloc(size, flags) kmalloc(size, (flags) | __GFP_ZERO) | ||||
#define kvcalloc(n, size, flags) kvmalloc_array(n, size, (flags) | __GFP_ZERO) | #define kvcalloc(n, size, flags) kvmalloc_array(n, size, (flags) | __GFP_ZERO) | ||||
#define kzalloc(size, flags) kmalloc(size, (flags) | __GFP_ZERO) | #define kzalloc(size, flags) kmalloc(size, (flags) | __GFP_ZERO) | ||||
#define kzalloc_node(size, flags, node) kmalloc_node(size, (flags) | __GFP_ZERO, node) | #define kzalloc_node(size, flags, node) kmalloc_node(size, (flags) | __GFP_ZERO, node) | ||||
▲ Show 20 Lines • Show All 165 Lines • Show Last 20 Lines |