|
NAMEksyms —
kernel symbol table interface
SYNOPSISdevice ksyms
DESCRIPTIONThe /dev/ksyms character device provides a read-only interface to a snapshot of the kernel symbol table. The in-kernel symbol manager is designed to be able to handle many types of symbols tables, however, only elf(5) symbol tables are supported by this device. The ELF format image contains two sections: a symbol table and a corresponding string table.
Elf formatted symbol table data read from the
/dev/ksyms file represents the state of the kernel
at the time when the device is opened. Since
/dev/ksyms has no text or data, most of the fields
are initialized to NULL. The FILES
ERRORSAn open(2) of /dev/ksyms will fail if:
SEE ALSOnlist(3), elf(5), kldload(8)HISTORYAksyms device exists in many different operating
systems. This implementation is similar in function to the Solaris and NetBSD
ksyms driver.
The AUTHORSTheksyms driver was written by Stacey
Son
<sson@FreeBSD.org>.
BUGSBecause files can be dynamically linked into the kernel at any time the symbol information can vary. When you open the /dev/ksyms file, you have access to an ELF image which represents a snapshot of the state of the kernel symbol information at that instant in time. Keeping the device open does not block the loading or unloading of kernel modules. To get a new snapshot you must close and re-open the device.A process is only allowed to open the /dev/ksyms file once at a time. The process must close the /dev/ksyms before it is allowed to open it again.
Visit the GSP FreeBSD Man Page Interface. |