From nobody Mon Dec 09 03:28:39 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Y66lW6cpqz5g7c7; Mon, 09 Dec 2024 03:28:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y66lW58Z2z44kS; Mon, 9 Dec 2024 03:28:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733714919; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ePJsuYKhlfxilkbB4qQ2w4+Ernab+Jzb3hw7bgaD4lQ=; b=JPK9e/QVfFTxJ2aLGs6m+gtkNRw4fYjbjwwmdN3pFp+ZedyNHBit8j/19Lhl0bEYxXMcat +zbOPUk0MDmUZPoQCTJ+el32ilNyaKO9z3IzqR3iejc+H68Q+MpxyZGckSiVFpu2hgP/vj tPikdM/jXmkYnNMZhPB/U5NJg0cRPYxu3OGqHVu7ZOjvoKCMaiqceI9zNGiJOtTUA+38pK Vrm3fY47QNUddXYWDjSzgrT4sBnIJZYQYvU8qnnMSlMrva9n+Jbvt+6g3LK+4FKdpTLzW3 pZaaobMCBqXy7KatVFzo45KjYZdOh/2fOJSx1F6DoJSh0FlPrNU0VrDj965Kvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733714919; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ePJsuYKhlfxilkbB4qQ2w4+Ernab+Jzb3hw7bgaD4lQ=; b=bFiAjEs0/Sw3G2rGPRB5m0h3moXr9cPKkK6ifLATCVtuyiKX6Ec04RKZzgJCUc+UxxweBB wB156M5pe202j4X5iFhFNiya+cId5AXgC7ULHZU5UWg5FYKBCK6pztHpPHI3ChFPyFdufV 4YkNTsWUfxSP3tiZVlTjofkLYJ0IzKdpLZvkHP3rILPszATbCF7VNddAi6TWRU9e+9cuKd wLGVCL2aVls9K9tGZzU8B1iNY5orTRamXD3NtSvUCLxz2po1Apa9svGsj4lKstUQm00/1X sZZzVSdaWqMdLQR4M7gauTkMdHlNbkc+JITF9JxUXFMMejQQZDbp3cy5wfLjdQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733714919; a=rsa-sha256; cv=none; b=pcvmKtdj+Y2T7qqh1zCH+a7MSvIkoHt6JCGVeZgReVPpgsRFOeDBnMttf2yxhrkqWnWfBI miax9Q+h5GXOUmHv7/XdBwiNmBuzqYEu7oeja9IlBEVrxXi7sEkcE3lEphkGvVuEU/GKww bGqJEj9IZilG+hTI/h1moBJb1fw9dCHC+mePdZ1+3V8TtmTDotQbAJpKM0zZ0E0OqwGD8F SRuZSXMmgvKJmzgplxQvxO3sLTH1lgwT3Fl30g35iWX2ZqL55iIaodtLQ/A8EQ/v7eoUUp VNDmN0o8mHiokIO+SlGfBn/4AT2YnQU0unDV6UD4teIbbslwRz/1y+rBqtNy9w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Y66lW445WzLV2; Mon, 9 Dec 2024 03:28:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4B93Sde5083945; Mon, 9 Dec 2024 03:28:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4B93Sd4d083942; Mon, 9 Dec 2024 03:28:39 GMT (envelope-from git) Date: Mon, 9 Dec 2024 03:28:39 GMT Message-Id: <202412090328.4B93Sd4d083942@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 32873ecb20ae - main - vm_map(9): some refresh List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 32873ecb20aebc5117a849dc9f2a11bd9b364a6b Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=32873ecb20aebc5117a849dc9f2a11bd9b364a6b commit 32873ecb20aebc5117a849dc9f2a11bd9b364a6b Author: Konstantin Belousov AuthorDate: 2024-12-07 23:10:52 +0000 Commit: Konstantin Belousov CommitDate: 2024-12-09 03:27:44 +0000 vm_map(9): some refresh Reviewed by: alc Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D47934 --- share/man/man9/vm_map.9 | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/share/man/man9/vm_map.9 b/share/man/man9/vm_map.9 index 81379a5c347d..39242dd6b2b8 100644 --- a/share/man/man9/vm_map.9 +++ b/share/man/man9/vm_map.9 @@ -49,15 +49,15 @@ subordinate maps, created using the function. .Bd -literal -offset indent struct vm_map { - struct vm_map_entry header; - struct sx lock; - struct mtx system_mtx; + struct vm_map_entry header; + union { + struct sx lock; + struct mtx system_mtx; + }; int nentries; vm_size_t size; u_int timestamp; - u_char needs_wakeup; - u_char system_map; - vm_flags_t flags; + u_int flags; vm_map_entry_t root; pmap_t pmap; int busy; @@ -83,12 +83,6 @@ A count of the members in use within the circular map entry list. Specifies the size of the virtual address space. .It Va timestamp Used to determine if the map has changed since its last access. -.It Va needs_wakeup -Indicates if a thread is waiting for an allocation within the map. -Used only by system maps. -.It Va system_map -Set to TRUE to indicate that map is a system map; otherwise, it belongs -to a user process. .It Va flags Map flags, described below. .It Va root @@ -106,6 +100,12 @@ Possible map flags: Wire all future pages in this map. .It Dv MAP_BUSY_WAKEUP There are waiters for the map busy status. +.It Va MAP_NEEDS_WAKEUP +Indicates if a thread is waiting for an allocation within the map. +Used only by system maps. +.It Va MAP_SYSTEM_MAP +If set, ndicates that map is a system map; otherwise, it belongs +to a user process. .El .Pp The following flags can be passed to