Changeset View
Changeset View
Standalone View
Standalone View
sys/cddl/compat/opensolaris/sys/kmem.h
Show All 38 Lines | |||||
#include <vm/vm_extern.h> | #include <vm/vm_extern.h> | ||||
MALLOC_DECLARE(M_SOLARIS); | MALLOC_DECLARE(M_SOLARIS); | ||||
#define POINTER_IS_VALID(p) (!((uintptr_t)(p) & 0x3)) | #define POINTER_IS_VALID(p) (!((uintptr_t)(p) & 0x3)) | ||||
#define POINTER_INVALIDATE(pp) (*(pp) = (void *)((uintptr_t)(*(pp)) | 0x1)) | #define POINTER_INVALIDATE(pp) (*(pp) = (void *)((uintptr_t)(*(pp)) | 0x1)) | ||||
#define KM_SLEEP M_WAITOK | #define KM_SLEEP M_WAITOK | ||||
#define KM_PUSHPAGE M_WAITOK | #define KM_PUSHPAGE (M_WAITOK | M_USE_RESERVE) | ||||
#define KM_NOSLEEP M_NOWAIT | #define KM_NOSLEEP M_NOWAIT | ||||
#define KM_NODEBUG M_NODUMP | #define KM_NODEBUG M_NODUMP | ||||
#define KM_NORMALPRI 0 | #define KM_NORMALPRI 0 | ||||
#define KMC_NODEBUG UMA_ZONE_NODUMP | #define KMC_NODEBUG UMA_ZONE_NODUMP | ||||
#define KMC_NOTOUCH 0 | #define KMC_NOTOUCH 0 | ||||
typedef struct kmem_cache { | typedef struct kmem_cache { | ||||
char kc_name[32]; | char kc_name[32]; | ||||
Show All 34 Lines |