Wrap inlines in uma_int.h in #ifdef _KERNEL so that uma_int.h can be
used from memstat_uma.c for the purposes of kvm access without lots of additional unsafe includes. MFC after: 3 days
This commit is contained in:
parent
39f1497151
commit
af17e9a922
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148690
@ -323,6 +323,7 @@ struct uma_zone {
|
||||
#define UMA_ZFLAG_FULL 0x40000000 /* Reached uz_maxpages */
|
||||
#define UMA_ZFLAG_CACHEONLY 0x80000000 /* Don't ask VM for buckets. */
|
||||
|
||||
#ifdef _KERNEL
|
||||
/* Internal prototypes */
|
||||
static __inline uma_slab_t hash_sfind(struct uma_hash *hash, u_int8_t *data);
|
||||
void *uma_large_malloc(int size, int wait);
|
||||
@ -412,5 +413,6 @@ vsetobj(vm_offset_t va, vm_object_t obj)
|
||||
*/
|
||||
void *uma_small_alloc(uma_zone_t zone, int bytes, u_int8_t *pflag, int wait);
|
||||
void uma_small_free(void *mem, int size, u_int8_t flags);
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* VM_UMA_INT_H */
|
||||
|
Loading…
Reference in New Issue
Block a user