logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

device_get_ivars, device_set_ivars — access bus private variables

Authors

       This manual page was written by Doug Rabson.

Debian                                            June 16, 1998                              DEVICE_GET_IVARS(9)

Description

       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.

Name

       device_get_ivars, device_set_ivars — access bus private variables

See Also

device(9)

Synopsis

#include<sys/param.h>#include<sys/bus.h>void*device_get_ivars(device_tdev);

       voiddevice_set_ivars(device_tdev, void*ivar);

See Also