Lines 32-37
Link Here
|
32 |
#include <sys/time.h> |
32 |
#include <sys/time.h> |
33 |
#include <sys/errno.h> |
33 |
#include <sys/errno.h> |
34 |
|
34 |
|
|
|
35 |
/* for non-OpenSolaris systems */ |
36 |
#if !defined(_KERNEL) && !defined(_BOOT) |
37 |
#include <stdint.h> /* uintxx_t */ |
38 |
#include <stdarg.h> /* va_list */ |
39 |
typedef unsigned int uint_t; |
40 |
typedef unsigned char uchar_t; |
41 |
typedef enum { B_FALSE, B_TRUE } boolean_t; |
42 |
typedef long long hrtime_t; |
43 |
#else |
44 |
typedef __va_list va_list; |
45 |
#endif |
46 |
|
35 |
#if defined(_KERNEL) && !defined(_BOOT) |
47 |
#if defined(_KERNEL) && !defined(_BOOT) |
36 |
#include <sys/kmem.h> |
48 |
#include <sys/kmem.h> |
37 |
#endif |
49 |
#endif |
Lines 133-139
Link Here
|
133 |
} nv_alloc_t; |
145 |
} nv_alloc_t; |
134 |
|
146 |
|
135 |
struct nv_alloc_ops { |
147 |
struct nv_alloc_ops { |
136 |
int (*nv_ao_init)(nv_alloc_t *, __va_list); |
148 |
int (*nv_ao_init)(nv_alloc_t *, va_list); |
137 |
void (*nv_ao_fini)(nv_alloc_t *); |
149 |
void (*nv_ao_fini)(nv_alloc_t *); |
138 |
void *(*nv_ao_alloc)(nv_alloc_t *, size_t); |
150 |
void *(*nv_ao_alloc)(nv_alloc_t *, size_t); |
139 |
void (*nv_ao_free)(nv_alloc_t *, void *, size_t); |
151 |
void (*nv_ao_free)(nv_alloc_t *, void *, size_t); |