Module Name: src
Committed By: apb
Date: Mon Sep 14 19:34:13 UTC 2009
Modified Files:
src/lib/libkvm: kvm_open.3
Log Message:
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).
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/lib/libkvm/kvm_open.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libkvm/kvm_open.3
diff -u src/lib/libkvm/kvm_open.3:1.15 src/lib/libkvm/kvm_open.3:1.16
--- src/lib/libkvm/kvm_open.3:1.15 Tue Mar 10 23:49:07 2009
+++ src/lib/libkvm/kvm_open.3 Mon Sep 14 19:34:12 2009
@@ -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 @@
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 .