GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
DEVICE_GET_PROPERTY(9) FreeBSD Kernel Developer's Manual DEVICE_GET_PROPERTY(9)

device_get_property, device_has_propertyaccess device specific data

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

ssize_t
device_get_property(device_t dev, const char *prop, void *val, size_t sz, device_property_type_t type);

bool
device_has_property(device_t dev, const char *prop);

Access device specific data provided by the parent bus. Drivers can use these properties to obtain device capabilities and set necessary quirks.

The underlying property type is specified with the type argument. Currently the following types are supported:

The underlying property is a string of bytes.
Wildcard property type.
Following a reference the underlying property is a handle of the respective bus.
The underlying property is an array of unsigned 32 bit integers. The sz argument shall be a multiple of 4.
The underlying property is an array of unsigned 64 bit integers. The sz argument shall be a multiple of 8.

You can pass NULL as pointer to property's value when calling () to obtain its size.

Currently this interface is implemented by simplebus(4) and acpi(4).

device_get_property() if successful returns property's size, otherwise returns -1.

device_has_property() returns true if given property was found.

acpi(4), simplebus(4), device(9)

This manual page was written by Bartlomiej Grzesik.

September 29, 2022 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 9 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.