From nobody Tue Mar 10 16:53:58 2026 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 4fVg2H1jVcz6Vwbl for ; Tue, 10 Mar 2026 16:53:59 +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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fVg2G4zdhz3lLy for ; Tue, 10 Mar 2026 16:53:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1773161638; 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=tZouUllapgp5m1oaRVeLYzmX04Z0Sgv3zMmMumlt8qE=; b=CRjzeurUsRjVMPwrxzW1dMLQkNzYPamLPrBBWWRwD1QS5Y+XF30gfInWrVqODfv160M/rg wCsX+T0wUHYzzid4b60wbjcXsBSupw/VeXzloAdS9B6ZeU8Hh1Ovm1u9/5PgnXE6AWocQ+ 2s5mwzcuNCf6DH+E17u9++xEVfEZLQ0LVfZuubznQq89K4ecCUzshEG6ri73Kh6Yx6oCry bFJ1+kyRj57DmodXpfUvkRawW5PoMBmgRaIYz/uKwIFoCqBj7CVcfyQnDf4aBelbmrVTWb bqy7mxBCZm2szN86X4Y+1mZAygSVKozDC8Q2J6QVUAgWxvpmunl1qhr6Rej8LQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1773161638; a=rsa-sha256; cv=none; b=yK0wOGH5TPpPw0Kif/axcJzE6gzzxBc3DSI03h8dBf9WEt6MlLKE5mFDlmiTBU5s09H+F6 qsLpzTdgdkKwjOnwkcvZmdbE2qhHuJ5ypEbcNlbsQkwIoPh5wJTPVxWH/Uizk3nu0GLLBd b2i2dCPbySn1rkfgn8RtQtblrusNESm4j71uyrzGhpYZJeeiCJPanMKEsisImDMyaIe3ei WTVqZ6LeAKPJoNsXrUuyMGZ4iW66aBIrSEXoV54kn+g/sOjoIuBExr8TbpclzeSbeKVIt6 dRvUSLw5hJEPIo9NDqD8XBba8AyhsVvLmFn9VFCQyDQ9fCdU1eqUliFUngkn+A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1773161638; 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=tZouUllapgp5m1oaRVeLYzmX04Z0Sgv3zMmMumlt8qE=; b=GrOQG4YzfKykHCV7o9PBT1uTZAxgF0zqeWYORPdu9QTIHKlnmusJm/fdanNiD1zm+G1Nxe 0+C6UsS2SFMXRNpFANOawMh1fmp/986mjfyL80mUk/yLB3gOOiJoG0QXCfxZQpI7P09upe aPOpto0GVYdLvNoG+XS17ACtZv1pnMsJXQ1jiCylnUnld/ASJjb28UorOW4QzZyKqdClIX eFdzvLTK0+alca1SY7tTaTnBCbwIKYQxgY1qH+O0TqhWBCjtfSqbERGr+TRCyNkypuML99 4Cqbb2zx1CqGmYEUcnFpfaNHSQxz9mhhTEqjF/pp/8VNJ8ACxX38vdxKczCf/A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fVg2G4KlLz55t for ; Tue, 10 Mar 2026 16:53:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 4568b by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 10 Mar 2026 16:53:58 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 98a0d2283701 - main - pciconf.8: Reorganize slightly to handle additional modes 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 98a0d2283701e08353ce670c8023803c58a4994c Auto-Submitted: auto-generated Date: Tue, 10 Mar 2026 16:53:58 +0000 Message-Id: <69b04ca6.4568b.5c5c5c32@gitrepo.freebsd.org> The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=98a0d2283701e08353ce670c8023803c58a4994c commit 98a0d2283701e08353ce670c8023803c58a4994c Author: John Baldwin AuthorDate: 2026-03-10 16:50:52 +0000 Commit: John Baldwin CommitDate: 2026-03-10 16:50:52 +0000 pciconf.8: Reorganize slightly to handle additional modes Move the description of the optional device argument earlier before describing individual command modes. Add a subsection for list mode and a second subsection for the other modes that work with a single device. Reviewed by: imp Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D55773 --- usr.sbin/pciconf/pciconf.8 | 58 +++++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 31 deletions(-) diff --git a/usr.sbin/pciconf/pciconf.8 b/usr.sbin/pciconf/pciconf.8 index 6c67e9e50df6..c9cbe483a1ac 100644 --- a/usr.sbin/pciconf/pciconf.8 +++ b/usr.sbin/pciconf/pciconf.8 @@ -23,7 +23,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd May 19, 2025 +.Dd March 10, 2026 .Dt PCICONF 8 .Os .Sh NAME @@ -52,6 +52,31 @@ access to .Pa /dev/pci , normally only the super-user. .Pp +A +.Ar device +can be identified either by a device name if the device is +attached to a driver or by a selector. +Selectors identify a PCI device by its address in PCI config space and +can take one of the following forms: +.Pp +.Bl -bullet -offset indent -compact +.It +.Li pci Ns Va domain Ns \&: Ns Va bus Ns \&: Ns Va device Ns \&: \ +Ns Va function Ns +.It +.Li pci Ns Va bus Ns \&: Ns Va device Ns \&: Ns Va function Ns +.It +.Li pci Ns Va bus Ns \&: Ns Va device Ns +.El +.Pp +In the case of an abridged form, omitted selector components are assumed to be 0. +An optional leading device name followed by @ and an optional final colon +will be ignored; this is so that the first column in the output of +.Nm +.Fl l +can be used without modification. +All numbers are base 10. +.Ss List Mode With the .Fl l option, @@ -260,36 +285,7 @@ argument is given with the flag, .Nm will only list details about a single device instead of all devices. -.Pp -All invocations of -.Nm -except for -.Fl l -require a -.Ar device . -The device can be identified either by a device name if the device is -attached to a driver or by a selector. -Selectors identify a PCI device by its address in PCI config space and -can take one of the following forms: -.Pp -.Bl -bullet -offset indent -compact -.It -.Li pci Ns Va domain Ns \&: Ns Va bus Ns \&: Ns Va device Ns \&: \ -Ns Va function Ns -.It -.Li pci Ns Va bus Ns \&: Ns Va device Ns \&: Ns Va function Ns -.It -.Li pci Ns Va bus Ns \&: Ns Va device Ns -.El -.Pp -In the case of an abridged form, omitted selector components are assumed to be 0. -An optional leading device name followed by @ and an optional final colon -will be ignored; this is so that the first column in the output of -.Nm -.Fl l -can be used without modification. -All numbers are base 10. -.Pp +.Ss Device Information Modes With the .Fl a flag,