.\" Copyright (c) 1992 The Regents of the University of California. .\" All rights reserved. .\" .\" %sccs.include.redist.man% .\" .\" @(#)kvm_geterr.3 5.1 (Berkeley) %G% .\" .Dd .Dt KVM_GETERR 3 .Os .Sh NAME .Nm kvm_geterr .Nd get error message on kvm descriptor .Sh SYNOPSIS .Fd #include .br .Ft char * .Fn kvm_geterr "kvm_t *kd" .Sh DESCRIPTION This function returns a string describing the most recent error condition on the descriptor .Fa kd . The results are undefined if the most recent .Xr kvm 3 library call did not produce an error. The string returned is stored in memory owned by .Xr kvm 3 so the message should be copied out and saved elsewhere if necessary. .Sh BUGS This routine cannot be used to access error conditions do to a failed .Fn kvm_openfiles call, since failure is indicated by returning a NULL descriptor. Therefore, errors on open are output to the special error buffer passed to .Fn kvm_openfiles . This option is not available to .Fn kvm_open . .Sh SEE ALSO .Xr kvm 3