FreeBSD Bugzilla – Attachment 17807 Details for
Bug 32241
vm_page_alloc.9 rewrite
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.83 KB, created by
davidc
on 2001-11-24 05:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
davidc
Created:
2001-11-24 05:40:01 UTC
Size:
1.83 KB
patch
obsolete
>--- ../../src/share/man/man9/vm_page_alloc.9 Wed Jul 18 00:09:13 2001 >+++ vm_page_alloc.9 Fri Nov 23 22:02:59 2001 >@@ -31,7 +31,7 @@ > .Os > .Sh NAME > .Nm vm_page_alloc >-.Nd "allocates a page for the object and index" >+.Nd "allocate a page for a vm_object" > .Sh SYNOPSIS > .In sys/param.h > .In vm/vm.h >@@ -41,34 +41,36 @@ > .Sh DESCRIPTION > The > .Fn vm_page_alloc >-function allocates a page for >-.Fa pindex >-in the VM object >-.Fa object . >-It is assumed that a page has not already been allocated for >+function allocates a page at > .Fa pindex >-and >+within > .Fa object . >+It is assumed that a page has not already been allocated at >+.Fa pindex . >+The page returned is inserted into the object, but is not inserted >+into the pmap. > .Pp >-The > .Fn vm_page_alloc >-function will not block. >+will not block. > .Pp > Its arguments are: > .Bl -tag -width ".Fa page_req" > .It Fa object > The VM object to allocate the page for. > .It Fa pindex >-The index of the page that should be allocated. >+The index into the object at which the page should be inserted. > .It Fa page_req > A flag indicating how the page should be allocated. > .Bl -tag -width ".Dv VM_ALLOC_INTERRUPT" > .It Dv VM_ALLOC_NORMAL > The page should be allocated with no special treatment. > .It Dv VM_ALLOC_SYSTEM >-The page can be allocated even if the buffer cache queue is empty >-and the free count is above the interrupt reserved water mark. >-This should be used only when the system really needs the page. >+The page can be allocated if the cache is empty and the free page >+count is above the interrupt reserved water mark. If >+.Dv VM_ALLOC_INTERRUPT >+is set the page can be allocated as long as the free page count is >+greater than zero. >+This flag should be used only when the system really needs the page. > .It Dv VM_ALLOC_INTERRUPT > .Fn vm_page_alloc > is being called during an interrupt and therefore the cache cannot
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 32241
: 17807