Make the documentation match reality. If no explicit kernel name is
provided, kvm_open() and kvm_openfiles() will try _PATH_KSYMS first, then either the path from sysctl machdep.booted_kernel (if that's available) or _PATH_UNIX (if the sysctl is not available).
This commit is contained in:
parent
8a61809cf3
commit
50a2fd2471
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: kvm_open.3,v 1.15 2009/03/10 23:49:07 joerg Exp $
|
||||
.\" $NetBSD: kvm_open.3,v 1.16 2009/09/14 19:34:12 apb Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1992, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -33,7 +33,7 @@
|
|||
.\"
|
||||
.\" @(#)kvm_open.3 8.3 (Berkeley) 4/19/94
|
||||
.\"
|
||||
.Dd April 19, 1994
|
||||
.Dd September 14, 2009
|
||||
.Dt KVM_OPEN 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -69,8 +69,19 @@ is the executable image of the kernel being examined.
|
|||
This file must contain a symbol table.
|
||||
If this argument is
|
||||
.Dv NULL ,
|
||||
the currently running system is assumed,
|
||||
which is indicated by
|
||||
the currently running system is assumed; in this case, the functions will
|
||||
attempt to use the
|
||||
.Xr ksyms 4
|
||||
device indicated by
|
||||
.Dv _PATH_KSYMS
|
||||
in
|
||||
.Aq Pa paths.h ;
|
||||
if that fails, then they will use the file indicated by the
|
||||
.Xr sysctl 3
|
||||
variable
|
||||
.Va machdep.booted_kernel ,
|
||||
or (if the sysctl information is not available)
|
||||
the default kernel path indicated by
|
||||
.Dv _PATH_UNIX
|
||||
in
|
||||
.Aq Pa paths.h .
|
||||
|
|
Loading…
Reference in New Issue