SN39A39.
.El
.Pp
-.Bl -tag -width ".Va dsched.policy.SN39A39"
The following are informative only:
+.Bl -tag -width ".Va dsched.policy.SN39A39"
.It Va dsched.policies
shows all available dsched policies, separated by spaces.
.El
The
.Fn mpipe_init
function initializes a malloc pipeline
-.Fa mpipe .
+.Fa mpipe .
The pipeline allocates buffers of size
.Fa bytes
from the
-malloc zone
-.Fa type .
+malloc zone
+.Fa type .
The pipeline is prefilled with
.Fa nnom
-buffers and has a limit of
+buffers and has a limit of
.Fa nmax
buffers. The
.Fa destructor
argument is a callback, invoked when the malloc pipeline is destroyed. The
.Fa flags
argument controls allocation parameters:
-.Ss MPF_NOZERO
+.Bl -tag -width ".Dv MPF_NOZERO" -offset indent
+.It Dv MPF_NOZERO
Do not zero allocated buffers.
-.Ss MPF_INT
+.It Dv MPF_INT
Allocations may use the interrupt memory reserve.
+.El
.Pp
This function may block.
.Pp
-The
+The
.Fn mpipe_done
function destroys a malloc pipeline. The pipeline's destructor is invoked on
each buffer and then they are returned to the system. It is an error to invoke
the pipeline maximum. It will sleep if it reaches the maximum, potentially
releasing any tokens.
.Pp
-The
+The
.Fn mpipe_free
function frees a buffer to the malloc pipeline. If the pipeline is full, it
will free directly to the kernel allocator, calling the destructor as it does.
The MPIPE implementation is in
.Pa /sys/kern/kern_mpipe.c .
.Sh SEE ALSO
-.Xr malloc 9
+.Xr kmalloc 9
.Sh HISTORY
-MPIPE first appeared in
+MPIPE first appeared in
.Dx 1.0 .