device_set_ivars(9freebsd)

device_set_ivars9freebsd

Access bus private variables

Part of device_get_ivars(9freebsd).

Usage

#include <sys/param.h>

#include <sys/bus.h>

void *

device_get_ivars(device_t dev);

void

device_set_ivars(device_t dev, void *ivar);

Overview

The device_get_ivars() function returns the bus-specific instance variables of a device.

The device_set_ivars() function sets the bus-specific instance variables of a device.

Typically, only bus drivers will use these functions. The kernel assumes that the bus driver will manage this memory, and no automatic memory allocation or deallocation happens. Client drivers should access ivars through the BUS_READ_IVAR(9) interface instead.

Releases

9 releases since Debian 5.0 (Lenny); the text changed 6 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11–13

Authors

This manual page was written by Doug Rabson.

From freebsd-manpages 12.2-2 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.