From nobody Fri Jun 02 13:17:25 2023 X-Original-To: dev-commits-src-branches@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 4QXk7V0nt7z4YKSW; Fri, 2 Jun 2023 13:17:26 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QXk7T72Bzz42BS; Fri, 2 Jun 2023 13:17:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685711846; 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=V/R6+lSqRxzQJv6bQUvcjJoReGitlq1CKS36TeED+3g=; b=csmJmUGcFD/V1kpkD+il2BH9iYtfDjXtBzjiXY/mg8AAF8KZxqM/zLl0q0kz1M2U5/q40r SmNz1RqF7S1R6gciAJBrOKTDMioVsW6Y5phswswjcfcI9GmIIz1BZMukjcymiMx4mgrvDM T2WuhMnB+FkjwgpDq6hgb9szYHcE65IkneNP76y0CPLtYjJTQ9FVYHIgbxJSzhshLWQsru mWvhx2RvNPHDcz5VDff2TuQ3wp33dLkcwwMUmPBPh6xDTaJ20yjk0E78qhhJanMMl2WAQQ uZ3snmptDWTbrIh6eQ2p8bfeEOyBztaX+QCcfSXjybl8lR1/z+4PyCHqXKB59A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685711846; 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=V/R6+lSqRxzQJv6bQUvcjJoReGitlq1CKS36TeED+3g=; b=oJOjtg7uJpzyLBYpUyQnxCOOAT/VOOpLfQYIinEsCzOCkPRRmIYeNbtzcCeqCyY3yWHCxs aziLs2wzhbngj6CqTkTN9QFVZiCyfzFWsVFNzlLgBj9b1iKlXqadHy/maYJJOdq58MY28p qHn8hidCUB/gZaDRDU14TyhYKH+18kpv3JLbBbcrhbWthjtb7sdUbid+gptrBUwNrOmX4b 7OSxS1qLtRacBNkxVEmWj8qxBdFt2uN6xEtYW0gaV0bh/UTGCXX3VI7hGN70ZbCzvQs/3w dKohNnBiVVvcL2PKn7doX13bPux7d2wUn24F+uEjeUVxUzBaUpVdlZCYX39F6g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685711846; a=rsa-sha256; cv=none; b=A6Zw/QwrLgrdCsg5RdwTmFiLgbMRJt+sy65c1RmKuKxQ9qBejxEreFOZKmHZ68vPgIRNiR 9qMPr2SP384+XuCxbdAPY5j5Qbzy2uynxSSt+XALLGfrWDI8mSR2zlt9lv+kmYAAphYPHH NOMXjmXlolcgDYNoF0SlXLiTbBVWq6JRFxaEcTetEZ+xtEuhDDP93MBEGxvxNZ4WfUhsjf 6lV+qANd9OB4dNEA5udPwmTOY4x6rorfqonGj4aseVDKUg86ixni/+80W8e50u4fbCzv9V 0zqRWtn6m39dGvtneqko2aXpbQwrKuHRlKZxj3Qa/EsJs8MMH0YgGUrWBwTG5g== 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 4QXk7T60Nsz1183; Fri, 2 Jun 2023 13:17:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 352DHPwJ062750; Fri, 2 Jun 2023 13:17:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 352DHPfC062749; Fri, 2 Jun 2023 13:17:25 GMT (envelope-from git) Date: Fri, 2 Jun 2023 13:17:25 GMT Message-Id: <202306021317.352DHPfC062749@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 1f1c3eb00db6 - stable/13 - posixshmcontrol.1: Document posixshmcontrol create -l List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 1f1c3eb00db6123b5b032c6be05fe3a0d08c1aba Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=1f1c3eb00db6123b5b032c6be05fe3a0d08c1aba commit 1f1c3eb00db6123b5b032c6be05fe3a0d08c1aba Author: Mark Johnston AuthorDate: 2023-05-25 21:08:55 +0000 Commit: Mark Johnston CommitDate: 2023-06-02 13:16:42 +0000 posixshmcontrol.1: Document posixshmcontrol create -l Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D40270 (cherry picked from commit db289ababf9053236deb945e70167947d36b8692) --- usr.bin/posixshmcontrol/posixshmcontrol.1 | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/usr.bin/posixshmcontrol/posixshmcontrol.1 b/usr.bin/posixshmcontrol/posixshmcontrol.1 index 1d8c3438b165..292768c39ce4 100644 --- a/usr.bin/posixshmcontrol/posixshmcontrol.1 +++ b/usr.bin/posixshmcontrol/posixshmcontrol.1 @@ -27,7 +27,7 @@ .\" .\" $FreeBSD$ .\" -.Dd February 26, 2022 +.Dd May 25, 2023 .Dt POSIXSHMCONTROL 1 .Os .Sh NAME @@ -36,6 +36,7 @@ .Sh SYNOPSIS .Nm .Ar create +.Op Fl l Ar pagesize .Op Fl m Ar mode .Op Pa path \&... .Nm @@ -79,10 +80,24 @@ for transient references. The following subcommands are provided: .Bl -tag -width truncate .It Ic create -Create segments with the specified paths, if not exist. +Create segments with the specified paths, if they do not already exist. +.Pp +The optional +.Ar pagesize +argument specifies the size of the virtual pages used to map the +object with +.Xr mmap 2 . +By default, the system page size is used, but on some platforms a +larger page size can be specified. +The size of an object backed by large pages must be a multiple of the +specified page size. The +.Va hw.pagesizes +sysctl variable lists the available page sizes. +.Pp +The optional numerical .Ar mode -optional numerical argument specifies initial access mode. +argument specifies the initial access mode. .It Ic rm Unlink the paths specified. .It Ic ls @@ -138,12 +153,14 @@ and then enlarge it to 1M, use the sequence of commands .Xr hexdump 1 , .Xr stat 1 , .Xr ftruncate 2 , +.Xr mmap 2 , .Xr read 2 , .Xr shm_open 2 , .Xr shm_unlink 2 , .Xr stat 2 , .Xr expand_number 3 , .Xr humanize_number 3 , +.Xr shm_create_largepage 3 , .Xr sysctl 3 .Sh HISTORY The