*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> BUS_READ_IVAR (9)              



NAME    [Toc]    [Back]

     BUS_READ_IVAR, BUS_WRITE_IVAR -- manipulate bus-specific device instance

SYNOPSIS    [Toc]    [Back]

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

     BUS_READ_IVAR(device_t dev, device_t child, int index,
	 uintptr_t *result);

     BUS_WRITE_IVAR(device_t dev, device_t child, int index, uintptr_t value);

DESCRIPTION    [Toc]    [Back]

     These two methods manage a bus specific set of instance variables of a
     child device.  The intention is that each different type of bus defines a
     set of appropriate instance variables (such as ports and irqs for ISA bus

     This information could be given to the child device as a struct but that
     makes it hard for a bus to add or remove variables without forcing an
     edit and recompile for all drivers which may not be possible for vendor
     supplied binary drivers.

RETURN VALUES    [Toc]    [Back]

     Zero is returned on success, otherwise an appropriate error is returned.

SEE ALSO    [Toc]    [Back]

     device(9), driver(9)

AUTHORS    [Toc]    [Back]

     This manual page was written by Doug Rabson.

FreeBSD 5.2.1			 June 16, 1998			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
device_get_softc FreeBSD access driver private instance variables
device_get_nameunit FreeBSD access the name of a device's device class or instance
device_get_name FreeBSD access the name of a device's device class or instance
setvar IRIX manipulate Tcl variables
EvmVarGetString Tru64 Manipulate event variables
EvmVarGetType Tru64 Manipulate event variables
EvmVarGetOpaque Tru64 Manipulate event variables
EvmVarGet Tru64 Manipulate event variables
EvmVarSet Tru64 Manipulate event variables
EvmVarGetXxx Tru64 Manipulate event variables
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service