return a descriptor used to access kernel virtual memory
Both active kernels and crash dumps are accessible
through this interface.
argument is the executable image of the kernel being examined.
This file must contain a symbol table.
If this argument is
the currently running system is assumed,
as determined from
argument is the kernel memory device file.
It can be either
or a crash dump core generated by
the default indicated by
It can also be set to a special value
by utilities like
that do not directly access kernel memory.
argument is currently unused.
argument indicates read/write access as in
and applies only to the core file.
There are two open routines which differ only with respect to
the error mechanism.
One provides backward compatibility with the SunOS kvm library, while the
other provides an improved error reporting framework.
function is the Sun kvm compatible open call.
argument indicates how errors should be handled.
If it is
no errors are reported and the application cannot know the
specific nature of the failed kvm call.
If it is not
errors are printed to
prepended to the message, as in
Normally, the name of the program is used here.
The string is assumed to persist at least until the corresponding
style error reporting.
Here, error messages are not printed out by the library.
Instead, the application obtains the error message
corresponding to the most recent kvm library call using
The results are undefined if the most recent kvm call did not produce
requires a kvm descriptor, but the open routines return
cannot be used to get the error message if open fails.
will place any error message in the
This buffer should be _POSIX2_LINE_MAX characters large (from