Skip to content

Commit

Permalink
vmem.9: align lists + tag spdx
Browse files Browse the repository at this point in the history
MFC after:	3 days
  • Loading branch information
concussious committed Oct 8, 2024
1 parent 50c64df commit ce2bed0
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions share/man/man9/vmem.9
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.\"-
.\" SPDX-License-Identifier: BSD-2-Clause
.\"
.\" $NetBSD: vmem.9,v 1.15 2013/01/29 22:02:17 wiz Exp $
.\"
.\" Copyright (c)2006 YAMAMOTO Takashi,
Expand Down Expand Up @@ -74,7 +77,7 @@ other than virtual memory.
.\" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
.Fn vmem_create
creates a new vmem arena.
.Bl -tag -width qcache_max
.Bl -tag -width "qcache_max"
.It Fa name
The string to describe the vmem.
.It Fa base
Expand Down Expand Up @@ -117,7 +120,7 @@ wait flag.
.\" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
.Fn vmem_xalloc
allocates a resource from the arena.
.Bl -tag -width nocross
.Bl -tag -width "qcache_max"
.It Fa vm
The arena which we allocate from.
.It Fa size
Expand Down Expand Up @@ -159,7 +162,7 @@ A bitwise OR of an allocation strategy and a
.Xr malloc 9
wait flag.
The allocation strategy is one of:
.Bl -tag -width indent
.Bl -tag -width "M_FIRSTFIT"
.It Dv M_FIRSTFIT
Prefer allocation performance.
.It Dv M_BESTFIT
Expand All @@ -182,7 +185,7 @@ overwrites it with the start address of the allocated span.
frees resource allocated by
.Fn vmem_xalloc
to the arena.
.Bl -tag -width addr
.Bl -tag -width "qcache_max"
.It Fa vm
The arena which we free to.
.It Fa addr
Expand All @@ -203,7 +206,7 @@ argument used for
.\" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
.Fn vmem_alloc
allocates a resource from the arena.
.Bl -tag -width flags
.Bl -tag -width "qcache_max"
.It Fa vm
The arena which we allocate from.
.It Fa size
Expand All @@ -228,7 +231,7 @@ overwrites it with the start address of the allocated span.
frees resource allocated by
.Fn vmem_alloc
to the arena.
.Bl -tag -width addr
.Bl -tag -width "qcache_max"
.It Fa vm
The arena which we free to.
.It Fa addr
Expand All @@ -249,7 +252,7 @@ argument used for
.\" ------------------------------------------------------------
.Fn vmem_destroy
destroys a vmem arena.
.Bl -tag -width vm
.Bl -tag -width "qcache_max"
.It Fa vm
The vmem arena being destroyed.
The caller should ensure that no one will use it anymore.

Check warning on line 258 in share/man/man9/vmem.9

View workflow job for this annotation

GitHub Actions / Style Checker

Missing Signed-off-by: line

Check warning on line 258 in share/man/man9/vmem.9

View workflow job for this annotation

GitHub Actions / Style Checker

Missing Signed-off-by: line
Expand Down

0 comments on commit ce2bed0

Please sign in to comment.