Manual Pages for UNIX Darwin command on man kvm_write
MyWebUniversity

Manual Pages for UNIX Darwin command on man kvm_write

KVMREAD(3) BSD Library Functions Manual KVMREAD(3)

NAME

kkvvmmrreeaadd, kkvvmmwwrriittee - read or write kernel virtual memory

SYNOPSIS

##iinncclluuddee <>

ssizet kkvvmmrreeaadd(kvmt *kd, ulong addr, void *buf, sizet nbytes); ssizet kkvvmmwwrriittee(kvmt *kd, ulong addr, const void *buf, sizet nbytes);

DESCRIPTION

The kkvvmmrreeaadd() and kkvvmmwwrriittee() functions are used to read and write ker-

nel virtual memory (or a crash dump file). See kkvvmmooppeenn(3) or kkvvmmooppeennffiilleess(3) for information regarding opening kernel virtual memory and crash dumps. The kkvvmmrreeaadd() function transfers nbytes bytes of data from the kernel space address addr to buf. Conversely, kkvvmmwwrriittee() transfers data from buf to addr. Unlike their SunOS counterparts, these functions cannot be used to read or write process address spaces.

RETURN VALUES

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

erwise, -1 is returned.

SEE ALSO

kvm(3), kvmclose(3), kvmgetargv(3), kvmgetenvv(3), kvmgeterr(3), kvmgetprocs(3), kvmnlist(3), kvmopen(3), kvmopenfiles(3) BSD June 4, 1993 BSD




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™