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

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



NAME    [Toc]    [Back]

     bus_child_present -- ask the bus driver to see if this device is still
     really present

SYNOPSIS    [Toc]    [Back]

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

     #include <machine/bus.h>
     #include <sys/rman.h>
     #include <machine/resource.h>

     bus_child_present(device_t dev);

DESCRIPTION    [Toc]    [Back]

     The bus_child_present() function requests that the parent device driver
     of dev check to see if the hardware represented by dev is still physically
 accessible at this time.  While the notion of accessible varies
     from bus to bus, generally hardware that is not acceessible cannot be
     accessed via the bus_space*() methods that would otherwise be used to
     access the device.

     This does not ask the question ``does this device have children?'' which
     can better be answered by device_get_children(9).

RETURN VALUES    [Toc]    [Back]

     A zero return value indicates that the device is not present in the system.
  A non-zero return value indicates that the device is present in the
     system, or that the state of the device cannot be determined.

EXAMPLES    [Toc]    [Back]

     This is some example code.  It only calls stop when the dc(4) device is
     actually present.

	   device_t dev;
	   dc_softc *sc;

	   sc = device_get_softc(dev);
	   if (bus_child_present(dev))

SEE ALSO    [Toc]    [Back]

     device(9), driver(9)

AUTHORS    [Toc]    [Back]

     This man page was written by Warner Losh <imp@FreeBSD.org>.

FreeBSD 5.2.1			March 27, 2003			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
el FreeBSD Ethernet driver for 3Com Etherlink 3C501 device driver
cs_oid_in_set Tru64 determine if an object identifier (OID) is present in an OID set
present IRIX Determines whether an optional argument is present
dxkbledpanel Tru64 Present an on-screen display of keyboard indicators.
hil HP-UX HP-HIL device driver
asp OpenBSD core bus controller as present on older HP 9000/700 machines
fdes_to_drivername IRIX determine the driver name for the device
ie FreeBSD ethernet device driver
smb FreeBSD SMB generic I/O device driver
if_ed FreeBSD ethernet device driver
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service