1
+ .\" -
2
+ .\" SPDX-License-Identifier: BSD-2-Clause
3
+ .\"
1
4
.\" $NetBSD: vmem.9,v 1.15 2013/01/29 22:02:17 wiz Exp $
2
5
.\"
3
6
.\" Copyright (c)2006 YAMAMOTO Takashi,
@@ -74,7 +77,7 @@ other than virtual memory.
74
77
.\" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
75
78
.Fn vmem_create
76
79
creates a new vmem arena.
77
- .Bl -tag -width qcache_max
80
+ .Bl -tag -offset indent - width " qcache_max"
78
81
.It Fa name
79
82
The string to describe the vmem.
80
83
.It Fa base
@@ -117,7 +120,7 @@ wait flag.
117
120
.\" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
118
121
.Fn vmem_xalloc
119
122
allocates a resource from the arena.
120
- .Bl -tag -width nocross
123
+ .Bl -tag -offset indent - width " qcache_max "
121
124
.It Fa vm
122
125
The arena which we allocate from.
123
126
.It Fa size
@@ -159,7 +162,7 @@ A bitwise OR of an allocation strategy and a
159
162
.Xr malloc 9
160
163
wait flag.
161
164
The allocation strategy is one of:
162
- .Bl -tag -width indent
165
+ .Bl -tag -width " M_FIRSTFIT "
163
166
.It Dv M_FIRSTFIT
164
167
Prefer allocation performance.
165
168
.It Dv M_BESTFIT
@@ -182,7 +185,7 @@ overwrites it with the start address of the allocated span.
182
185
frees resource allocated by
183
186
.Fn vmem_xalloc
184
187
to the arena.
185
- .Bl -tag -width addr
188
+ .Bl -tag -offset indent - width " qcache_max "
186
189
.It Fa vm
187
190
The arena which we free to.
188
191
.It Fa addr
@@ -203,7 +206,7 @@ argument used for
203
206
.\" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
204
207
.Fn vmem_alloc
205
208
allocates a resource from the arena.
206
- .Bl -tag -width flags
209
+ .Bl -tag -offset indent - width " qcache_max "
207
210
.It Fa vm
208
211
The arena which we allocate from.
209
212
.It Fa size
@@ -228,7 +231,7 @@ overwrites it with the start address of the allocated span.
228
231
frees resource allocated by
229
232
.Fn vmem_alloc
230
233
to the arena.
231
- .Bl -tag -width addr
234
+ .Bl -tag -offset indent - width " qcache_max "
232
235
.It Fa vm
233
236
The arena which we free to.
234
237
.It Fa addr
@@ -249,7 +252,7 @@ argument used for
249
252
.\" ------------------------------------------------------------
250
253
.Fn vmem_destroy
251
254
destroys a vmem arena.
252
- .Bl -tag -width vm
255
+ .Bl -tag -offset indent - width " qcache_max "
253
256
.It Fa vm
254
257
The vmem arena being destroyed.
255
258
The caller should ensure that no one will use it anymore.
0 commit comments