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

  man pages->IRIX man pages -> standard/dev_to_drivername (2)              
Title
Content
Arch
Section
 

Contents


DEV_TO_DRIVERNAME(2)					  DEV_TO_DRIVERNAME(2)


NAME    [Toc]    [Back]

     dev_to_drivername - determine the driver name  for	the device

C SYNOPSIS    [Toc]    [Back]

     #include <invent.h>

     int dev_to_drivername (dev_t dev, char *buf, int *length);

OVERVIEW    [Toc]    [Back]

     dev_to_drivername is useful to determine the name of the driver handling
     the device.

DESCRIPTION    [Toc]    [Back]

     The dev_to_drivername function provides a way to retrieve the name	of the
     device driver handling the	device.

     Dev identifies the	device,	buf is the placeholder for the driver name and
     length is an input/output argument	that on	the call to dev_to_drivername
     should contain the	maximum	size of	the name the process is	willing	to
     accept.  On return, the length will have been modified to show the	actual
     size of the device	driver name returned.

     dev_to_drivername will fail if one	or more	of the following are true:

     [E2BIG]
	  The driver name  is too large	to fit into the	buffer.	 The integer
	  that the valuelength argument	points to has been modified to show
	  the actual number of bytes that would	be required to store the value
	  of that attribute.

     [ENODEV]
	  The device does not exist.

     [EPERM]
	  The effective	user ID	does not match the owner of the	file and the
	  effective user ID is not super-user.

     [EFAULT]
	  Buf, or length points	outside	the allocated address space of the
	  process.

SEE ALSO    [Toc]    [Back]

      
      
     attr(1), hwgraph(4)

DIAGNOSTICS    [Toc]    [Back]

     Upon successful completion, the name is returned.	Otherwise, a value of
     NULL is returned and errno	is set to indicate the error.


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
filename_to_devname IRIX determine the device name for the device file
filename_to_drivername IRIX determine the device name for the device file
el FreeBSD Ethernet driver for 3Com Etherlink 3C501 device driver
fdes_to_devname IRIX determine the device name for the device
dev_to_devname IRIX determine the device name for the device
hil HP-UX HP-HIL device driver
if_ed FreeBSD ethernet device driver
driver NetBSD description of a device driver
uaudio OpenBSD USB audio device driver
joy FreeBSD joystick device driver
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service