KVM_GETFILES(3) | Library Functions Manual | KVM_GETFILES(3) |
#define _KERNEL
#include <sys/file.h>
#undef _KERNEL
char *
kvm_getfiles(kvm_t *kd, int op, int arg, int *cnt);
The number of processes found is returned in the reference parameter cnt. The files are returned as a contiguous array of file structures, preceded by the address of the first file entry in the kernel. This memory is owned by kvm and is not guaranteed to be persistent across subsequent kvm library calls. Data should be copied out if it needs to be saved.
April 19, 1994 | NetBSD 7.2 |