Copyright 1989 AT&T Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved
Copyright 2012, Joyent, Inc. All Rights Reserved
Copyright 2019, Peter tribble.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the
fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
/usr/sbin/prtconf [-V] | [-F] | [-m] | [-x] | [-bpv] | [-acdDPv] [dev_path]
If a device path is specified on the command line for those command options that can take a device path, prtconf will only display information for that device node.
Display all the ancestors device nodes, up to the root node of the device tree, for the device specified on the command line.
Display the firmware device tree root properties for the purpose of platform identification. These properties are "name", "compatible", "banner-name" and "model".
Display the device subtree rooted at the device node specified on the command line, that is, display all the children of the device node specified on the command line.
Display vendor ID and device ID for PCI and PCI Express devices, in addition to the nodename. If the information is known, the vendor name and device name will also be shown.
For each system peripheral in the device tree, displays the name of the device driver used to manage the peripheral.
Returns the device path name of the console frame buffer, if one exists. If there is no frame buffer, prtconf returns a non-zero exit code. This flag must be used by itself. It returns only the name of the console, frame buffer device or a non-zero exit code. For example, if the console frame buffer on a SUNW,Ultra-30 is ffb, the command returns: /SUNW,ffb@1e,0:ffb0. This option could be used to create a symlink for /dev/fb to the actual console device.
Displays the amount of system memory in megabytes. This flag must be used by itself.
Displays information derived from the device tree provided by the firmware (PROM) on SPARC platforms or the booting system on x86 platforms.The device tree information displayed using this option is a snapshot of the initial configuration and may not accurately reflect reconfiguration events that occur later.
Includes information about pseudo devices. By default, information regarding pseudo devices is omitted.
Specifies verbose mode.
Displays platform-dependent PROM (on SPARC platforms) or booting system (on x86 platforms) version information. This flag must be used by itself. The output is a string. The format of the string is arbitrary and platform-dependent.
A legacy flag that reported if the firmware on this system is 64-bit ready. As illumos only runs on 64-bit platforms, this flag is kept for compatibility only, and zero is always returned. This flag overrides all other flags and must be used by itself.
The path to a target device minor node, device nexus node, or device link for which device node configuration information is displayed
No error occurred.
With the -F option, a non-zero return value means that the output device is not a frame buffer. In all other cases, a non-zero return value means that an error occurred.
ATTRIBUTE TYPE ATTRIBUTE VALUE |
Interface Stability Unstable |
The driver not attached message means that no driver is currently attached to that instance of the device. In general, drivers are loaded and installed (and attached to hardware instances) on demand, and when needed, and may be uninstalled and unloaded when the device is not in use.
On x86 platforms, the use of prtconf -vp provides a subset of information from prtconf -v. The value of integer properties from prtconf -vp might require byte swapping for correct interpretation.