KNLIST(3C) COMMAND REFERENCE KNLIST(3C)
NAME
knlist - get entries from kernel CVT table
SYNOPSIS
#include <nlist.h>
knlist(filename, nl)
char *filename;
struct nlist nl[];
DESCRIPTION
Knlist examines a table of kernel symbols in kernel memory
(the CVT table) and selectively extracts a list of values.
See cvt(4) for a description of the CVT table. Knlist
performs the same function as nlist(3c), but runs faster and
returns values that are guaranteed to correspond with the
currently running kernel.
The list of names to be looked up is passed in nl. Nl
should be terminated with a null name. Filename is the name
of the special file containing the CVT table (usually
/dev/cvt).
If the name of an entry in nl is found in the CVT table, the
value from the table is copied into that entry's value field
in nl. If the name is not found, the value is set to 0. See
<nlist.h> for the nlist structure declaration.
If filename names an a.out file rather than the CVT table,
knlist will call nlist, passing its arguments.
FILES
/dev/cvt Standard name for CVT table.
RETURN VALUE
Knlist returns 0 if everything worked as expected,
Knlist returns -1 upon error.
SEE ALSO
nlist(3c), cvt(4).
Printed 10/17/86 1
%%index%%
na:72,78;
sy:150,550;
de:700,1267;
fi:1967,108;
rv:2075,244;
se:2319,108;
%%index%%000000000107