man9: Document M_NEVERFREED and VM_ALLOC_NOFREE
Reviewed by: alc, kib, markj Differential Revision: https://reviews.freebsd.org/D46198
This commit is contained in:
+10
-1
@@ -28,7 +28,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $NetBSD: malloc.9,v 1.3 1996/11/11 00:05:11 lukem Exp $
|
.\" $NetBSD: malloc.9,v 1.3 1996/11/11 00:05:11 lukem Exp $
|
||||||
.\"
|
.\"
|
||||||
.Dd October 12, 2022
|
.Dd August 4, 2024
|
||||||
.Dt MALLOC 9
|
.Dt MALLOC 9
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@@ -269,6 +269,15 @@ This option should only be used in combination with
|
|||||||
.Dv M_NOWAIT
|
.Dv M_NOWAIT
|
||||||
when an allocation failure cannot be tolerated by the caller without
|
when an allocation failure cannot be tolerated by the caller without
|
||||||
catastrophic effects on the system.
|
catastrophic effects on the system.
|
||||||
|
.It Dv M_NEVERFREED
|
||||||
|
This is an internal flag used by the
|
||||||
|
.Xr UMA 9
|
||||||
|
allocator and should not be used in regular
|
||||||
|
.Fn malloc
|
||||||
|
invocations.
|
||||||
|
See the description of VM_ALLOC_NOFREE in
|
||||||
|
.Xr vm_page_alloc 9
|
||||||
|
for more details.
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
Exactly one of either
|
Exactly one of either
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
|
||||||
.\" DAMAGE.
|
.\" DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.Dd July 21, 2024
|
.Dd August 4, 2024
|
||||||
.Dt VM_PAGE_ALLOC 9
|
.Dt VM_PAGE_ALLOC 9
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@@ -307,6 +307,10 @@ pages will be allocated by the caller in the near future.
|
|||||||
must be no larger than 65535.
|
must be no larger than 65535.
|
||||||
If the system is short of free pages, this hint may cause the kernel
|
If the system is short of free pages, this hint may cause the kernel
|
||||||
to reclaim memory more aggressively than it would otherwise.
|
to reclaim memory more aggressively than it would otherwise.
|
||||||
|
.It Dv VM_ALLOC_NOFREE
|
||||||
|
The caller asserts that the returned page will never be released.
|
||||||
|
If this flag is specified, the allocator will try to fetch a page from a
|
||||||
|
special per-domain arena in order to curb long-term physical memory fragmentation.
|
||||||
.El
|
.El
|
||||||
.Sh RETURN VALUES
|
.Sh RETURN VALUES
|
||||||
If the allocation was successful, a pointer to the
|
If the allocation was successful, a pointer to the
|
||||||
|
|||||||
Reference in New Issue
Block a user