From nobody Thu Dec 09 01:27:57 2021 X-Original-To: dev-commits-src-all@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 6BF0A18CF015; Thu, 9 Dec 2021 01:27:58 +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 4J8by56gClz3GkL; Thu, 9 Dec 2021 01:27:57 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 BFDA51DEE8; Thu, 9 Dec 2021 01:27:57 +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 1B91Rvxi046009; Thu, 9 Dec 2021 01:27:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B91RvVG046008; Thu, 9 Dec 2021 01:27:57 GMT (envelope-from git) Date: Thu, 9 Dec 2021 01:27:57 GMT Message-Id: <202112090127.1B91RvVG046008@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: 9f0fea5d033f - main - Document new variant of swapoff(2) List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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: 9f0fea5d033f5cd4b9b76aefe31b12c4dba25790 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639013278; 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=xJDxm717n68UpYTPQp856v9baaElldqFZWnzpuALmBc=; b=w+FaZWq5nfYdegGNygKNJdixkoe6QERaU5Ul0NCJhcvrv388DCS5tVDf1UnMSvde5KR/7u zP9dmMxvzH2HZKNQ1P4FkXiUWWvxp9pu3tQ8jZbMeOfq1iJZ5evLMByFgTL/GTDB+ECsgq e0a7qptqVsVuUHSzx1yRAVHtCZUpHSRVg2D1nKTotNM2pADs8KpQdDj+wsRmUJ8cvVafhx ICl675jGOgXCqMWnVBKAHeJqml6MIJdomRdDaz7+7HnyfmHw+yFjy7e/9z52DSEyUVaYcI rElMOFeioF08jn6Cmv1h6zZ9M8mU4rEEENqCtQ30rgNgqOw5tT0Re8Y78Yv7Cg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639013278; a=rsa-sha256; cv=none; b=TOhudUApFm993MxbLu3t9SUsAZmuY7s31UrBjfFVO7fSBupN8t5E8GGXUvqp9cT1HLyL5X wUzS6f7oBZq7LEGEXExfc7IpFGi8dRc0hsdtCj6lIduoPpAkekwox8Bs7mTj7hY8ve7XJX U89WzMx6eVEbsd2ZoFy7ebtuFtyMwJMaLbLgIatXD1wIuHsrm2yDEjaSsqITkQ4OxCdyFE ghYKXvTniQ43e8LQxJn5by2pVJL9Xol56fLY+NJGOe6KQ92d3F8BUYW9zJFM83DCQnSOMo Ljr3HWhasuvISo4JNpgy+LrwEDatXLDHVSr89/QLTY1pkQ20B506b0MSmPIDyA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=9f0fea5d033f5cd4b9b76aefe31b12c4dba25790 commit 9f0fea5d033f5cd4b9b76aefe31b12c4dba25790 Author: Konstantin Belousov AuthorDate: 2021-12-08 21:24:31 +0000 Commit: Konstantin Belousov CommitDate: 2021-12-09 00:48:53 +0000 Document new variant of swapoff(2) Reviewed by: brooks Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D33343 --- lib/libc/sys/swapon.2 | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/lib/libc/sys/swapon.2 b/lib/libc/sys/swapon.2 index 3a8da8f4f363..c369e8b7ba51 100644 --- a/lib/libc/sys/swapon.2 +++ b/lib/libc/sys/swapon.2 @@ -28,7 +28,7 @@ .\" @(#)swapon.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd December 2, 2021 +.Dd December 8, 2021 .Dt SWAPON 2 .Os .Sh NAME @@ -43,7 +43,7 @@ .Ft int .Fn swapon "const char *special" .Ft int -.Fn swapoff "const char *special" +.Fn swapoff "const char *special" "u_int flags" .Sh DESCRIPTION The .Fn swapon @@ -68,27 +68,7 @@ is made available for other purposes. .Pp The .Fa special -argument points to either the string that names the special device -used for swapping or the following structure -.Bd -literal -struct swapoff_new_args { - const char *name_old_syscall; - const char *name; - u_int flags; -}; -.Ed -that extends swapoff's interface to include optional flags. -The -.Va name_old_syscall -member must be initialized to -.Dv NULL -for the system to recognize the extended interface. -It is recommended that the whole structure be zeroed for future -compatibility, due to padding. -.Pp -The -.Va name -string is the special device name, same as legacy syscall argument. +argument points to the name of the device or file used for swapping. .The .Va flags argument takes the following flags: