From: Sascha Wildner Date: Tue, 17 Aug 2010 13:55:50 +0000 (+0200) Subject: Fix some minor mdoc issues. X-Git-Tag: v2.9.0~501 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/cf972a9f8cc2b4ae1b4a051005ab1ad5b3d54314 Fix some minor mdoc issues. --- diff --git a/share/man/man4/dsched.4 b/share/man/man4/dsched.4 index 8c7ffdfa97..ff206cc637 100644 --- a/share/man/man4/dsched.4 +++ b/share/man/man4/dsched.4 @@ -57,8 +57,8 @@ shows and sets the current policy for the disk with serial number 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 diff --git a/share/man/man9/mpipe.9 b/share/man/man9/mpipe.9 index 08b037a429..31ab2b0ea2 100644 --- a/share/man/man9/mpipe.9 +++ b/share/man/man9/mpipe.9 @@ -50,29 +50,31 @@ a minimum number of buffers are required to make progress. 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 @@ -92,7 +94,7 @@ from the pipeline; if that is exhausted, it will fall back on kmalloc, up to 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. @@ -106,7 +108,7 @@ guard against preemption by entering critical sections. 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 .