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

  man pages->Tru64 Unix man pages -> get_info (9r)              
Title
Content
Arch
Section
 

get_info(9r)

Contents


NAME    [Toc]    [Back]

       get_info - General: Returns system-specific information

SYNOPSIS    [Toc]    [Back]

       #include <devdriver.h>

       u_int get_info(
               struct item_list *item_list );

ARGUMENTS    [Toc]    [Back]

       Specifies a linked list of information requests.

DESCRIPTION    [Toc]    [Back]

       The get_info routine returns system-specific data assigned
       to the hardware platform that the driver operates on.  For
       example,  a  device  driver  might request system-specific
       information for the following  Alpha  hardware  platforms:
       DEC 3000 Model 300 AXP Workstation, DEC 3000 Model 500 AXP
       Workstation, and DEC 4000 Model 610 AXP System.

       The get_info routine checks the  function  code  that  you
       pass  in  the function member of the item_list data structure.
 If the hardware platform that the driver operates on
       supports  the  system  item  associated with this function
       code, get_info returns the system-specific  data  for  the
       system  item  in  the  output_data member of the item_list
       structure. For example, get_info returns the  TURBOchannel
       clock  speed  in  the  output_data member of the item_list
       structure if you specify the constant GET_TC_SPEED in  the
       function member of the item_list structure.

       The  get_info  routine  then performs the identical checks
       for the rest of the item_list  structures  in  the  linked
       list.

NOTES    [Toc]    [Back]

       The get_info routine is a generic interface that maps to a
       hardware platform-specific interface that actually returns
       the  assigned  CPU-specific  data  for  the specified CPU.
       Using this  routine  to  obtain  CPU-specific  information
       makes the driver more portable across different CPU architectures
 and different CPU types within the same architecture.

RETURN VALUES    [Toc]    [Back]

       The  return value from the get_info routine depends on the
       following issues: The hardware platform supports get_info

              In this case, get_info returns the value TRUE.  The
              hardware platform does not support get_info

              In  this  case, get_info returns the value NOT_SUPPORTED.


       If get_info returns the value TRUE, it returns one of  the
       following values in the rtn_status member of the item_list
       data structure: Indicates that the hardware platform  that
       the  driver  currently  operates on supports the requested
       system item.  Indicates that the  hardware  platform  that
       the driver operates on does not support the requested system
 item.

SEE ALSO    [Toc]    [Back]

      
      
       Routines: do_config(9r), get_config(9r)

       Data Structures: item_list(9s)



                                                     get_info(9r)
[ Back ]
 Similar pages
Name OS Title
task Tru64 General: Contains task-specific information
slock Tru64 General: Contains simple lock-specific information
lock Tru64 General: Contains complex lock-specific information
sysinfo Linux returns information on overall system statistics
readpixels IRIX returns values of specific pixels
strlen Tru64 General: Returns the number of characters in a
pmap_kernel Tru64 General: Returns the physical map handle for the kernel
fubyte Tru64 General: Returns a byte from user address space
locale Linux Get locale-specific information.
t_getinfo Tru64 Get protocol-specific information
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service