Amiga Unix — 68040 · 68060

Manual pages › Amiga-specific libraries (3A)

knlist(3A)

get entries from kernel's name list

From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.

knlist - get entries from kernel's name list

cc [flag ...] file ... /usr/amiga/lib/knlist.o -lelf [...]

#include <nlist.h>

extern int knlist(const char *filename, struct nlist *nl);

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.

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.

nlist(3e), elf(3e), a.out(4).