121448Smckusick /* 221448Smckusick * Copyright (c) 1980 Regents of the University of California. 321448Smckusick * All rights reserved. The Berkeley software License Agreement 421448Smckusick * specifies the terms and conditions for redistribution. 521448Smckusick */ 621448Smckusick 715131Ssam #ifndef lint 8*50148Smarc static char sccsid[] = "@(#)fetch.c 5.5 (Berkeley) 06/26/91"; 921448Smckusick #endif not lint 1015131Ssam 1115131Ssam #include "systat.h" 1215131Ssam 13*50148Smarc kvm_ckread(a, b, l) 14*50148Smarc void *a, *b; 15*50148Smarc int l; 1615131Ssam { 17*50148Smarc extern int verbose; 1815131Ssam 19*50148Smarc if (kvm_read(a, b, l) != l) { 20*50148Smarc if (verbose) 21*50148Smarc error("error reading kmem at %x\n", a); 22*50148Smarc return (0); 23*50148Smarc } 24*50148Smarc else 25*50148Smarc return (1); 2615131Ssam } 27