.\" Copyright (c) 1992 The Regents of the University of California.
.\" This code is derived from software developed by the Computer Systems
.\" Engineering group at Lawrence Berkeley Laboratory under DARPA contract
.\" BG 91-66 and contributed to Berkeley.
.\" %sccs.include.redist.man%
.\" @(#)kvm_getfiles.3 5.3 (Berkeley) %G%
.Fd #include <sys/kinfo.h>
.Fd #include <sys/file.h>
.Fn kvm_getfiles "kvm_t *kd" "int op" "int arg" "int *cnt"
returns a (sub-)set of the open files in the kernel indicated by
arguments constitute a predicate which limits the set of files
returned. No predicates are currently defined.
The number of processes found is returned in the reference parameter
The files are returned as a contiguous array of file structures,
preceeded 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
will return NULL on failure.
This routine does not belong in the kvm interface.