summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-03-21 17:05:34 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-03-21 17:05:34 +0000
commit592aa88f1978d11e875f01afaa8c9c358376c31e (patch)
tree36e71d1177c53bbef522036f438882f603fe367c
parent971dada8c4202925843df82ead9456037fe4dbe8 (diff)
/dev/ksyms masquerades as a native executable, not necessarily a.out.
-rw-r--r--share/man/man4/ksyms.419
1 files changed, 14 insertions, 5 deletions
diff --git a/share/man/man4/ksyms.4 b/share/man/man4/ksyms.4
index 4b52e267bac..8a4935ce221 100644
--- a/share/man/man4/ksyms.4
+++ b/share/man/man4/ksyms.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ksyms.4,v 1.10 2003/06/17 21:56:24 millert Exp $
+.\" $OpenBSD: ksyms.4,v 1.11 2004/03/21 17:05:33 miod Exp $
.\"
.\" Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
.\"
@@ -21,14 +21,20 @@
.Nm ksyms
.Nd kernel symbol table device
.Sh SYNOPSIS
-.Sy pseudo-device Nm ksyms 1
+.Cd "pseudo-device ksyms" Op Ar count
.Sh DESCRIPTION
The
.Pa /dev/ksyms
device masquerades as an
+.Ox
+native executable
+.Po
.Em a.out
-executable with the symbols from the running kernel as its
-symbol segment.
+or
+.Em ELF ,
+depending on the platform
+.Pc
+with the symbols from the running kernel as its symbol segment.
Use of
.Pa /dev/ksyms
requires that the boot loader preserve the kernel symbols and place
@@ -68,7 +74,10 @@ An open was attempted with write permissions.
.It Bq Er ENXIO
No kernel symbols were saved by the boot loader (usually because
they were removed with
-.Xr strip 1 ) .
+.Xr strip 1 ) ,
+or the kernel has been compiled without a
+.Dq pseudo-device ksyms
+line.
.El
.Sh SEE ALSO
.Xr kvm 3 ,