*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->NetBSD man pages -> kvm_write (3)              
Title
Content
Arch
Section
 

KVM_READ(3)

Contents


NAME    [Toc]    [Back]

     kvm_read, kvm_write - read or write kernel virtual memory

LIBRARY    [Toc]    [Back]

     Kernel Data Access Library (libkvm, -lkvm)

SYNOPSIS    [Toc]    [Back]

     #include <kvm.h>

     ssize_t
     kvm_read(kvm_t *kd, u_long addr, void *buf, size_t nbytes);

     ssize_t
     kvm_write(kvm_t *kd, u_long addr, const void *buf, size_t nbytes);

DESCRIPTION    [Toc]    [Back]

     The kvm_read() and kvm_write() functions are used to read and write kernel
 virtual memory (or a crash dump file). See kvm_open(3) or
     kvm_openfiles(3) for information regarding opening kernel virtual memory
     and crash dumps.

     The kvm_read() function transfers nbytes bytes of data from the kernel
     space address addr to buf.  Conversely, kvm_write() transfers data from
     buf to addr.  Unlike their SunOS counterparts, these functions cannot be
     used to read or write process address spaces.

RETURN VALUES    [Toc]    [Back]

     Upon success, the number of bytes actually transferred is returned.  Otherwise,
 -1 is returned.

SEE ALSO    [Toc]    [Back]

      
      
     kvm(3), kvm_close(3), kvm_getargv(3), kvm_getenvv(3), kvm_geterr(3),
     kvm_getprocs(3), kvm_nlist(3), kvm_open(3), kvm_openfiles(3)

BSD                              June 4, 1993                              BSD
[ Back ]
 Similar pages
Name OS Title
AFreadmisc IRIX read from / write to / move logical read/write pointer for data in a miscellaneous chunk in an audio file
core_addshmem_write HP-UX determines the inclusion of read/write shared memory in process core dump
kvm_open NetBSD initialize kernel virtual memory access
kvm_openfiles FreeBSD initialize kernel virtual memory access
kvm_openfiles OpenBSD initialize kernel virtual memory access
kvm_close FreeBSD initialize kernel virtual memory access
kvm_close NetBSD initialize kernel virtual memory access
kvm_openfiles NetBSD initialize kernel virtual memory access
kvm_open FreeBSD initialize kernel virtual memory access
kvm_open OpenBSD initialize kernel virtual memory access
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service