KNLIST(3A) — MISC REFERENCE MANUAL PAGES
NAME
knlist − get entries from kernel’s name list
SYNOPSIS
cc [flag ...] file ... /usr/amiga/lib/knlist.o −lelf [...]
#include <nlist.h>
extern int knlist(const char ∗filename, struct nlist ∗nl);
DESCRIPTION
knlist examines the name list (symbol table) of a kernel object file. It is normally used to access /stand/unix, the object file of the currently running kernel. knlist operates as described in nlist(3e), except that it adjusts the values of relocatable symbols to reflect the action of the relocating kernel loader.
NOTES
knlist asks the running kernel where it loaded and uses that address as the base for relocating the symbols. Thus, the addresses will be correct for /stand/unix and the running kernel, but will not necessarily be the same from one machine to another.
SEE ALSO
Amiga Unix — Last change: