Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
KVM_KERNDISP(3)	       FreeBSD Library Functions Manual	       KVM_KERNDISP(3)

NAME
     kvm_kerndisp -- get kernel	displacement

LIBRARY
     Kernel Data Access	Library	(libkvm, -lkvm)

SYNOPSIS
     #include <kvm.h>

     kssize_t
     kvm_kerndisp(kvm_t	*kd);

DESCRIPTION
     kvm_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 displace-
     ment will be negative.

RETURN VALUES
     kvm_kerndisp() returns the	number of bytes	by which the kernel is dis-
     placed.  If the kernel is not displaced or	if it is not possible to find
     the displacement then 0 is	returned.

SEE ALSO
     kvm(3), kvm_close(3), kvm_open(3)

FreeBSD	13.0		       February	5, 2020			  FreeBSD 13.0

NAME | LIBRARY | SYNOPSIS | DESCRIPTION | RETURN VALUES | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=kvm_kerndisp&sektion=3&manpath=FreeBSD+13.0-RELEASE>

home | help