tail head cat sleep
QR code linking to this page

Manual Pages  — BUS_CHILD_PNPINFO

NAME

BUS_CHILD_PNPINFO – obtain the plug and play information from a device

CONTENTS

SYNOPSIS

#include <sys/param.h>
#include <sys/bus.h>
#include <sys/sbuf.h>

void
BUS_CHILD_PNPINFO(device_t dev, device_t child, struct sbuf *sb);

DESCRIPTION

The BUS_CHILD_LOCATION() method returns the identifying information about the child device. This information is called the plug and play (pnp) details by some buses. This information is a series of key=value pairs. The string must be formatted as a space-separated list of key=value pairs. Names may only contain alphanumeric characters, underscores ('_') and hyphens ('-'). Values can contain any non-whitespace characters. Values containing whitespace can be quoted with double quotes ('"'). Double quotes and backslashes in quoted values can be escaped with backslashes (').

The pnpinfo is defined as a series of characteristics of the child device that are independent of which drivers are attached, but are used to allow drivers to claim a device. Typically, plug and play information encodes who made the device, what the model number is, and some generic details about the device. By convention, only the generic information about the device that's used by drivers on that bus to decide on accepting the device is reported. Other configuration information (such as the cache burst size) needed for the operation of the device, but that doesn't distinguish it broadly from other devices is not reported.

SEE ALSO

bus(9), device(9)

BUS_CHILD_PNPINFO (9) April 22, 2021

tail head cat sleep
QR code linking to this page


Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

Hang in there, people suffering from natural disasters and deadly diseases - we're putting ribbons on our cars as fast as we can
— Artur Bagyants