| VMEM_WALK(9F) | Kernel Functions for Drivers | VMEM_WALK(9F) |
vmem_walk,
vmem_size — walk a (sub-)set
of the segments in a vmem arena
#include
<sys/vmem.h>
void
vmem_walk(vmem_t *vmp,
int typemask, void (*func)(void *,
void *, size_t), void *arg);
size_t
vmem_size(vmem_t *vmp,
int typemask);
illumos DDI specific
VMEM_ALLOCVMEM_FREEvmem_walk().func().vmem_walk()
walks each segment in the arena vmp and applies
func to each which matches
typemask.
vmem_size()
walks each segment in the arena vmp and totals the
size of each matching typemask.
This function may be called from user or kernel context.
| January 18, 2017 | OmniOS |