4.4BSD/usr/share/man/cat3/kvm_read.0

Compare this file to the similar file:
Show the results in this format:

KVM_READ(3)                 BSD Programmer's Manual                KVM_READ(3)

NNAAMMEE
     kkvvmm__rreeaadd, kkvvmm__wwrriittee - read or write kernel virtual memory

SSYYNNOOPPSSIISS
     ##iinncclluuddee <<kkvvmm..hh>>

     _s_s_i_z_e___t
     kkvvmm__rreeaadd(_k_v_m___t _*_k_d, _u___l_o_n_g _a_d_d_r, _v_o_i_d _*_b_u_f, _s_i_z_e___t _n_b_y_t_e_s);

     _s_s_i_z_e___t
     kkvvmm__wwrriittee(_k_v_m___t _*_k_d, _u___l_o_n_g _a_d_d_r, _c_o_n_s_t _v_o_i_d _*_b_u_f, _s_i_z_e___t _n_b_y_t_e_s);

DDEESSCCRRIIPPTTIIOONN
     The kkvvmm__rreeaadd() and kkvvmm__wwrriittee() functions are used to read and write ker-
     nel virtual memory (or a crash dump file). See kkvvmm__ooppeenn(_3) or
     kkvvmm__ooppeennffiilleess(_3) for information regarding opening kernel virtual memory
     and crash dumps.

     The kkvvmm__rreeaadd() function transfers _n_b_y_t_e_s bytes of data from the kernel
     space address _a_d_d_r to _b_u_f. Conversely, kkvvmm__wwrriittee() transfers data from
     _b_u_f to _a_d_d_r. Unlike their SunOS counterparts, these functions cannot be
     used to read or write process address spaces.

RREETTUURRNN VVAALLUUEESS
     Upon success, the number of bytes actually transferred is returned.  Oth-
     erwise, -1 is returned.

SSEEEE AALLSSOO
     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)

4.4BSD                           June 4, 1993                                1