1kvm_nlist(3KVM) Kernel VM Library Functions kvm_nlist(3KVM)
2
3
4
6 kvm_nlist - get entries from kernel symbol table
7
9 cc [ flag... ] file... -lkvm [ library...]
10 #include <kvm.h>
11 #include <nlist.h>
12
13 int kvm_nlist(kvm_t *kd, struct nlist *nl);
14
15
17 The kvm_nlist() function examines the symbol table from the kernel
18 image identified by kd (see kvm_open(3KVM)) and selectively extracts a
19 list of values and puts them in the array of nlist structures pointed
20 to by nl. The name list pointed to by nl consists of an array of struc‐
21 tures containing names, types and values. The n_name field of each
22 such structure is taken to be a pointer to a character string repre‐
23 senting a symbol name. The list is terminated by an entry with a null
24 pointer (or a pointer to a null string) in the n_name field. For each
25 entry in nl, if the named symbol is present in the kernel symbol table,
26 its value and type are placed in the n_value and n_type fields. If a
27 symbol cannot be located, the corresponding n_type field of nl is set
28 to 0.
29
31 The kvm_nlist() functions returns the value of nlist(3UCB) or
32 nlist(3ELF), depending on the library used.
33
35 See attributes(5) for descriptions of the following attributes:
36
37
38
39
40 ┌─────────────────────────────┬─────────────────────────────┐
41 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
42 ├─────────────────────────────┼─────────────────────────────┤
43 │Interface Stability │Stable │
44 ├─────────────────────────────┼─────────────────────────────┤
45 │MT-Level │Unsafe │
46 └─────────────────────────────┴─────────────────────────────┘
47
49 kvm_open(3KVM), kvm_kread(3KVM), nlist(3ELF), nlist(3UCB),
50 attributes(5)
51
53 Although the libkvm API is Stable, the symbol names and data values
54 that can be accessed through this set of interfaces are Private and are
55 subject to ongoing change.
56
57
58
59SunOS 5.11 2 May 2002 kvm_nlist(3KVM)