Page MenuHomeFreeBSD

D46198.diff
No OneTemporary

D46198.diff

diff --git a/share/man/man9/malloc.9 b/share/man/man9/malloc.9
--- a/share/man/man9/malloc.9
+++ b/share/man/man9/malloc.9
@@ -28,7 +28,7 @@
.\"
.\" $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
.Os
.Sh NAME
@@ -269,6 +269,15 @@
.Dv M_NOWAIT
when an allocation failure cannot be tolerated by the caller without
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
.Pp
Exactly one of either
diff --git a/share/man/man9/vm_page_alloc.9 b/share/man/man9/vm_page_alloc.9
--- a/share/man/man9/vm_page_alloc.9
+++ b/share/man/man9/vm_page_alloc.9
@@ -28,7 +28,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
.\" DAMAGE.
.\"
-.Dd July 21, 2024
+.Dd August 4, 2024
.Dt VM_PAGE_ALLOC 9
.Os
.Sh NAME
@@ -307,6 +307,10 @@
must be no larger than 65535.
If the system is short of free pages, this hint may cause the kernel
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
.Sh RETURN VALUES
If the allocation was successful, a pointer to the

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 18, 12:41 PM (20 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14697773
Default Alt Text
D46198.diff (1 KB)

Event Timeline