device_get_ivars (9)
Leading comments
Copyright (c) 1998 Doug Rabson All rights reserved. This program is free software. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in...
NAME
device_get_ivars device_set_ivars - access bus private variablesSYNOPSIS
In sys/param.h In sys/bus.h Ft void * Fn device_get_ivars device_t dev Ft void Fn device_set_ivars device_t dev void *ivarDESCRIPTION
The Fn device_get_ivars function returns the bus-specific instance variables of a device.The Fn 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_IVAR9 interface instead.