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

  man pages->FreeBSD man pages -> devclass_get_device (9)              
Title
Content
Arch
Section
 

DEVCLASS_GET_DEVICE(9)

Contents


NAME    [Toc]    [Back]

     devclass_get_device -- translate unit number to device

SYNOPSIS    [Toc]    [Back]

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

     device_t
     devclass_get_device(devclass_t dc, int unit);

DESCRIPTION    [Toc]    [Back]

     This function retrieves the device instance with the given unit number
     and returns it.

RETURN VALUES    [Toc]    [Back]

     If the device exists, it is returned, otherwise NULL is returned.

SEE ALSO    [Toc]    [Back]

      
      
     devclass(9), device(9)

AUTHORS    [Toc]    [Back]

     This man page was written by Doug Rabson.


FreeBSD 5.2.1			 June 16, 1998			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
devclass_get_softc FreeBSD translate unit number to driver private structure
device_get_unit FreeBSD access the unit number of a device
devclass_get_maxunit FreeBSD find the maximum unit number in the class
asnqfile IRIX Returns the assign options currently in effect for a file name or unit number
maplun IRIX returns the integer file descriptor for a Fortran logical unit number
XmConvertUnits IRIX A function that converts a value in one unit type to another unit type
XmConvertUnits Tru64 A function that converts a value in one unit type to another unit type
XmConvertUnits HP-UX A function that converts a value in one unit type to another unit type
vcount OpenBSD get total number of references to a device
vfinddev OpenBSD lookup a vnode by device number
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service