2 .\" Copyright (C) 2001 Chad David <davidc@acns.ab.ca>. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice(s), this list of conditions and the following disclaimer as
9 .\" the first lines of this file unmodified other than the possible
10 .\" addition of one or more copyright notices.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice(s), this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) ``AS IS'' AND ANY
16 .\" EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18 .\" DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
19 .\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20 .\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21 .\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22 .\" CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
34 .Nm vm_page_free_toq ,
35 .Nm vm_page_free_zero ,
36 .Nm vm_page_try_to_free
43 .Fn vm_page_free "vm_page_t m"
45 .Fn vm_page_free_toq "vm_page_t m"
47 .Fn vm_page_free_zero "vm_page_t m"
49 .Fn vm_page_try_to_free "vm_page_t m"
53 function moves a page into the free queue, and disassociates it from
55 If the page is held, wired, already free, or its busy count is not
56 zero, the system will panic.
59 flag is set on the page, it is placed at the end of the free queue;
60 otherwise, it is placed at the front.
62 If the page's object is of type
64 and it is the last page associated with the object, the underlying
73 to actually free the page, but
81 flag prior to the call to
82 .Fn vm_page_free_toq .
85 .Fn vm_page_try_to_free
86 function verifies that the page is not held, wired, busy or dirty, and
87 if so, marks the page as busy, drops any protection that may be set on
88 the page, and frees it.
90 .Fn vm_page_try_to_free
91 returns 1 if it is able to free the page; otherwise, 0 is returned.
97 This manual page was written by
98 .An Chad David Aq davidc@acns.ab.ca .