2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2017, Richard Lowe.
20 .Nd walk a (sub\-)set of the segments in a vmem arena
27 .Fa "void (*func)(void *, void *, size_t)"
40 The vmem arena to walk.
42 A bitmask indicating the types of segment to operate on.
50 The function to apply to each segment matching
53 should accept 3 arguments and return void:
61 The base address of the segment.
63 The size of the segment.
66 An arbitrary argument passed to each call to
71 walks each segment in the arena
79 walks each segment in the arena
81 and totals the size of each matching
84 This function may be called from user or kernel context.