Print this page
code review from Josh and Robert
*** 35,72 ****
.Sh INTERFACE LEVEL
illumos DDI specific
.Sh PARAMETERS
.Bl -tag -width Ds
.It Fa vmp
! The vmem arena to walk
.It Fa typemask
! A bitmask indicating the types of segment to operate on
.Bl -tag -width Ds
.It Dv VMEM_ALLOC
! Allocated segments
.It Dv VMEM_FREE
! Free segments
.El
.It Fa func
The function to apply to each segment matching
.Fa typemask .
.Fa func
! should be of 3 values and return void:
.Bl -tag -width Ds
.It Fa "void *arg"
The
.Fa arg
passed to
! .Fn vmem_walk
.It Fa "void *vaddr"
! The base address of the segment
.It Fa "size_t size"
! The size of the segment
.El
.It Fa arg
An arbitrary argument passed to each call to
! .Fn func
.El
.Sh DESCRIPTION
.Fn vmem_walk
walks each segment in the arena
.Fa vmp
--- 35,72 ----
.Sh INTERFACE LEVEL
illumos DDI specific
.Sh PARAMETERS
.Bl -tag -width Ds
.It Fa vmp
! The vmem arena to walk.
.It Fa typemask
! A bitmask indicating the types of segment to operate on.
.Bl -tag -width Ds
.It Dv VMEM_ALLOC
! Allocated segments.
.It Dv VMEM_FREE
! Free segments.
.El
.It Fa func
The function to apply to each segment matching
.Fa typemask .
.Fa func
! should accept 3 arguments and return void:
.Bl -tag -width Ds
.It Fa "void *arg"
The
.Fa arg
passed to
! .Fn vmem_walk .
.It Fa "void *vaddr"
! The base address of the segment.
.It Fa "size_t size"
! The size of the segment.
.El
.It Fa arg
An arbitrary argument passed to each call to
! .Fn func .
.El
.Sh DESCRIPTION
.Fn vmem_walk
walks each segment in the arena
.Fa vmp