xref: /src/usr.sbin/devinfo/devinfo.8 (revision ca25b1b26379e27bf2bab7742a7b383ca0bfc7d2)
1.\"
2.\" SPDX-License-Identifier: BSD-2-Clause
3.\"
4.\" Copyright (c) 2002 Hiten Pandya
5.\" Copyright (c) 2002 Robert N. M. Watson
6.\"
7.\" All rights reserved.
8.\"
9.\" Redistribution and use in source and binary forms, with or without
10.\" modification, are permitted provided that the following conditions
11.\" are met:
12.\" 1. Redistributions of source code must retain the above copyright
13.\"    notice, this list of conditions and the following disclaimer.
14.\" 2. Redistributions in binary form must reproduce the above copyright
15.\"    notice, this list of conditions and the following disclaimer in the
16.\"    documentation and/or other materials provided with the distribution.
17.\"
18.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
19.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21.\" IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
22.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28.\"
29.Dd March 6, 2026
30.Dt DEVINFO 8
31.Os
32.Sh NAME
33.Nm devinfo
34.Nd print information about system device configuration
35.Sh SYNOPSIS
36.Nm
37.Op Fl rv
38.Nm
39.Fl p Ar dev Op Fl v
40.Nm
41.Fl u Op Fl v
42.Sh DESCRIPTION
43The
44.Nm
45utility, without any arguments, shows the hierarchy of devices available
46in the system, starting from the
47.Dq nexus
48device.
49.Pp
50The following options are accepted:
51.Bl -tag -width indent
52.It Fl p Ar dev
53Display the path of
54.Ar dev
55back to the root of the device tree.
56.Ar dev
57can either be a device name,
58the absolute path of an ACPI handle
59.Po must begin with a
60.Dq \e
61.Pc ,
62or a PCI selector
63.Po
64either
65.Sy pci Ns Fa domain Ns : Ns Fa bus Ns : Ns Fa slot Ns : Ns Fa function
66or
67.Sy pci Ns Fa bus Ns : Ns Fa slot Ns : Ns Fa function
68.Pc .
69.Pp
70If
71.Fl v
72is specified,
73each device is output on a separate line including the device name and
74additional verbose information;
75otherwise, a space-separated list of device names is output.
76.It Fl r
77Causes hardware resource information
78.Pq such as IRQ, I/O ports, I/O memory addresses
79to be also listed, under each device that has reserved those resources.
80.It Fl u
81Displays the same information as with
82.Fl r
83but sorts by resource type rather than by device, allowing to review the
84set of system resources by usage and available resources.
85I.e., it lists all
86the IRQ consumers together.
87.It Fl v
88Display all devices in the driver tree, not just those that are attached or
89busy.
90Without this flag, only those devices that have attached are reported.
91This flag also displays verbose information about each device.
92.El
93.Sh SEE ALSO
94.Xr systat 1 ,
95.Xr devinfo 3 ,
96.Xr devctl 8 ,
97.Xr iostat 8 ,
98.Xr pciconf 8 ,
99.Xr vmstat 8 ,
100.Xr devclass 9 ,
101.Xr device 9
102.Sh HISTORY
103The
104.Nm
105utility appeared in
106.Fx 5.0 .
107.Sh AUTHORS
108.An Mike Smith Aq Mt msmith@FreeBSD.org
109