|
NAMEkvm_kerndisp —
get kernel displacement
LIBRARYKernel Data Access Library (libkvm, -lkvm)SYNOPSIS#include <kvm.h>
kssize_t
DESCRIPTIONkvm_kerndisp () returns the number of bytes by which the
kernel referenced by kd is displaced. This is the
difference between the kernel's base virtual address at run time and the
kernel base virtual address specified in the kernel image file.
Note that if the kernel is moved to a lower memory address, the displacement will be negative. RETURN VALUESkvm_kerndisp () returns the number of bytes by which the
kernel is displaced. If the kernel is not displaced or if it is not possible
to find the displacement then 0 is returned.
SEE ALSOkvm(3), kvm_close(3), kvm_open(3)
Visit the GSP FreeBSD Man Page Interface. |