diff options
-rw-r--r-- | share/man/man9/uvm.9 | 38 |
1 files changed, 27 insertions, 11 deletions
diff --git a/share/man/man9/uvm.9 b/share/man/man9/uvm.9 index bf1d78a821b..d14747af11c 100644 --- a/share/man/man9/uvm.9 +++ b/share/man/man9/uvm.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: uvm.9,v 1.51 2014/01/21 03:15:46 schwarze Exp $ +.\" $OpenBSD: uvm.9,v 1.52 2014/05/29 06:17:08 guenther 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: January 21 2014 $ +.Dd $Mdocdate: May 29 2014 $ .Dt UVM 9 .Os .Sh NAME @@ -138,11 +138,15 @@ function initialises the swap subsystem. .Ft void .Fn uvmspace_exec "struct proc *p" "vaddr_t start" "vaddr_t end" .Ft struct vmspace * -.Fn uvmspace_fork "struct vmspace *vm" +.Fn uvmspace_fork "struct process *pr" .Ft void -.Fn uvmspace_free "struct vmspace *vm1" +.Fn uvmspace_free "struct vmspace *vm" +.Ft struct vmspace * +.Fn uvmspace_share "struct process *pr" +.Ft vaddr_t +.Fn uvm_uarea_alloc "void" .Ft void -.Fn uvmspace_share "struct proc *p1" "struct proc *p2" +.Fn uvm_uarea_free "struct proc *p" .Ft int .Fn UVM_MAPFLAG "vm_prot_t prot" "vm_prot_t maxprot" "vm_inherit_t inh" "int advice" "int flags" .nr nS 0 @@ -384,8 +388,9 @@ through The .Fn uvmspace_fork function creates and returns a new address space based upon the -.Fa vm1 -address space, typically used when allocating an address space for a +address space of process +.Fa pr +and is typically used when allocating an address space for a child process. .Pp The @@ -396,10 +401,21 @@ freeing the data structures if there are no other references. .Pp The .Fn uvmspace_share -function causes process -.Fa p2 -to share the address space of -.Fa p1 . +function returns a reference to the address space of process +.Fa pr , +increasing its reference count. +.Pp +The +.Fn uvm_uarea_alloc +function allocates a thread's +.Sq uarea , +the memory where its kernel stack and PCB are stored. +The +.Fn uvm_uarea_free +function frees the the uarea for +thread +.Fa p , +which must no longer be running. .Sh PAGE FAULT HANDLING .nr nS 1 .Ft int |