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

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

RESOURCE_INT_VALUE(9)

Contents


NAME    [Toc]    [Back]

     resource_int_value, resource_long_value, resource_string_value -- get a
     value from the hints mechanism

SYNOPSIS    [Toc]    [Back]

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

     int
     resource_int_value(const char *name, int unit, const char *resname,
	 int *result);

     int
     resource_long_value(const char *name, int unit, const char *resname,
	 long *result);

     int
     resource_string_value(const char *name, int unit, const char *resname,
	 const char **result);

DESCRIPTION    [Toc]    [Back]

     These functions fetch a value from the ``hints'' mechanism.

     The functions take the following arguments:

     name     The name of the device to get the resource value from.

     unit     The unit number of the device.  -1 is special and is used for
	      wildcard entries.

     resname  The resource name.

     result   A pointer to memory in which to store the resource value.

RETURN VALUES    [Toc]    [Back]

     If successful, the functions return 0.  Otherwise, a non-zero error code
     is returned.

ERRORS    [Toc]    [Back]

     The functions will fail if:

     [ENOENT]		The resource could not be found.

     [EFTYPE]		Inappropriate resource type.

SEE ALSO    [Toc]    [Back]

      
      
     device(9), driver(9)

AUTHORS    [Toc]    [Back]

     This manual page was written by Warner Losh <[email protected]>.


FreeBSD 5.2.1			 March 1, 2001			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
defoma-hints Linux generate font hints.
glHint Tru64 specify implementation-specific hints
device.hints FreeBSD device resource hints
glhint IRIX specify implementation-specific hints
mquery OpenBSD provide mapping hints to applications
kldxref FreeBSD generate hints for the kernel loader
openHintsShortcuts IRIX load the desktop Hints & Shortcuts into Web browser
capabilities IRIX Capability Mechanism
pw_post HP-UX lightweight synchronization mechanism
pw_getvmax HP-UX lightweight synchronization mechanism
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service