summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-04-14 17:07:09 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-04-14 17:07:09 +0000
commita4bc840dcf978b5e5bef7142406a29f963e43080 (patch)
treebcf145345a4275b850daa2db8bb2e682578e317b
parenteca59200c465e76daa19a24df0611c6dc23f3942 (diff)
manpage bits for uvm_pglistalloc() changes.
Couple of tweaks from jmc@
-rw-r--r--share/man/man9/uvm.925
1 files changed, 19 insertions, 6 deletions
diff --git a/share/man/man9/uvm.9 b/share/man/man9/uvm.9
index 52dc594a744..51ac34a2e25 100644
--- a/share/man/man9/uvm.9
+++ b/share/man/man9/uvm.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: uvm.9,v 1.38 2009/03/19 20:09:00 jmc Exp $
+.\" $OpenBSD: uvm.9,v 1.39 2009/04/14 17:07:08 oga Exp $
.\" $NetBSD: uvm.9,v 1.14 2000/06/29 06:08:44 mrg Exp $
.\"
.\" Copyright (c) 1998 Matthew R. Green
@@ -30,7 +30,7 @@
.\" XXX this manual sets nS to 1 or 0 in the description, to obtain
.\" synopsis-like function prototypes. any better way?
.\"
-.Dd $Mdocdate: March 19 2009 $
+.Dd $Mdocdate: April 14 2009 $
.Dt UVM 9
.Os
.Sh NAME
@@ -620,7 +620,7 @@ on the map before unlocking the map.
.Ft void
.Fn uvm_pagefree "struct vm_page *pg"
.Ft int
-.Fn uvm_pglistalloc "psize_t size" "paddr_t low" "paddr_t high" "paddr_t alignment" "paddr_t boundary" "struct pglist *rlist" "int nsegs" "int waitok"
+.Fn uvm_pglistalloc "psize_t size" "paddr_t low" "paddr_t high" "paddr_t alignment" "paddr_t boundary" "struct pglist *rlist" "int nsegs" "int flags"
.Ft void
.Fn uvm_pglistfree "struct pglist *list"
.Ft void
@@ -699,12 +699,25 @@ is non-zero, no segment of the list may cross this power-of-two
boundary, relative to zero.
.Fa nsegs
is the maximum number of physically contigous segments.
-The
-.Fa waitok
-argument is currently ignored.
The allocated memory is returned in the
.Fa rlist
list.
+The
+.Fa flags
+can be any of:
+.Bd -literal
+#define UVM_PLA_WAITOK 0x0001 /* may sleep */
+#define UVM_PLA_NOWAIT 0x0002 /* can't sleep */
+.Ed
+.Pp
+The
+.Dv UVM_PLA_WAITOK
+flag means that the function may sleep while trying to allocate the list of
+pages (this is currently ignored).
+Conversely, the
+.Dv UVM_PLA_NOWAIT
+flag signifies that the function may not sleep while allocating.
+It is an error not to provide one of the above flags.
.Pp
The
.Fn uvm_pglistfree