diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2005-07-15 10:23:55 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2005-07-15 10:23:55 +0000 |
| commit | 09df0a9a0905288049b98877c13383c17920519f (patch) | |
| tree | efe49e62eda3c10890df963d57333b55344e67ee /lib/libmemstat/libmemstat.3 | |
| parent | 3ab4da680ff9d9753fb0496cdf1b8cc81b851bac (diff) | |
Notes
Diffstat (limited to 'lib/libmemstat/libmemstat.3')
| -rw-r--r-- | lib/libmemstat/libmemstat.3 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/libmemstat/libmemstat.3 b/lib/libmemstat/libmemstat.3 index c5aa3c7b3acc..42f08719cbdd 100644 --- a/lib/libmemstat/libmemstat.3 +++ b/lib/libmemstat/libmemstat.3 @@ -189,6 +189,28 @@ be initialized to or .Dv NULL before first use. +.Ss Allocator Types +Currently, +.Nm +supports two kernel allocators: +.Dv ALLOCATOR_UMA +for +.Xr uma 9 , +and +.Dv ALLOCATOR_MALLOC +for +.Xr malloc 9 . +These values may be passed to +.Fn memstat_mtl_find , +and will be returned by +.Fn memstat_get_allocator . +Two additional constants in the allocator name space are defined: +.Dv ALLOCATOR_UNKNOWN , +which will only be returned as a result of a library error, and +.Dv ALLOCATOR_ANY , +which can be used to specify that returning types matching any allocator is +permittible from +.Fn memstat_mtl_find . .Sh EXAMPLES Create a memory type list, query the .Xr uma 9 |
