MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Kernel VM Library Functions                       kvmnlist(3KVM)



NAME
     kvmnlist - get entries from kernel symbol table

SYNOPSIS
     cc [ flag... ] file... -lkvm [ library...]
     #include 
     #include 

     int kvmnlist(kvmt *kd, struct nlist *nl);


DESCRIPTION
     The kvmnlist() function examines the symbol table from  the
     kernel  image  identified  by  kd  (see  kvmopen(3KVM)) and
     selectively extracts a list of values and puts them  in  the
     array  of  nlist  structures pointed to by nl. The name list
     pointed to by nl consists of an array of structures contain-
     ing  names, types and values.  The nname field of each such
     structure is taken to be a pointer  to  a  character  string
     representing  a  symbol  name.  The list is terminated by an
     entry with a null pointer (or a pointer to a null string) in
     the nname field.  For each entry in nl, if the named symbol
     is present in the kernel symbol table, its  value  and  type
     are  placed  in  the  nvalue and ntype fields. If a symbol
     cannot be located, the corresponding ntype field of  nl  is
     set to 0.

RETURN VALUES
     The kvmnlist() functions returns the value of   nlist(3UCB)
     or nlist(3ELF), depending on the library used.

ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Interface Stability          Stable                      
    
     MT-Level                     Unsafe                      
    


SEE ALSO
     kvmopen(3KVM), kvmkread(3KVM),  nlist(3ELF),  nlist(3UCB),
     attributes(5)

NOTES




SunOS 5.11           Last change: 2 May 2002                    1






Kernel VM Library Functions                       kvmnlist(3KVM)



     Although the libkvm API is Stable, the symbol names and data
     values  that  can be accessed through this set of interfaces
     are Private and are subject to ongoing change.




















































SunOS 5.11           Last change: 2 May 2002                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™