MirOS Manual: kvm_getfiles(3)

KVM_GETFILES(3)            BSD Programmer's Manual             KVM_GETFILES(3)

NAME

     kvm_getfiles - survey open files

SYNOPSIS

     #include <kvm.h>
     #include <sys/types.h>
     #define _KERNEL
     #include <sys/file.h>
     #undef _KERNEL

     char *
     kvm_getfiles(kvm_t *kd, int op, int arg, int *cnt);

DESCRIPTION

     kvm_getfiles() returns a (sub-)set of the open files in the kernel indi-
     cated by kd. The op and arg 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 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.

RETURN VALUES

     kvm_getfiles() will return NULL on failure.

SEE ALSO

     kvm(3), kvm_close(3), kvm_geterr(3), kvm_nlist(3), kvm_open(3),
     kvm_openfiles(3), kvm_read(3), kvm_write(3)

BUGS

     This routine does not belong in the kvm interface.

MirOS BSD #10-current           April 19, 1994                               1

Generated on 2012-02-20 02:47:02 by $MirOS: src/scripts/roff2htm,v 1.70 2011/12/03 18:21:12 tg Exp $

These manual pages and other documentation are copyrighted by their respective writers; their source is available at our CVSweb, AnonCVS, and other mirrors. The rest is Copyright © 2002‒2011 The MirOS Project, Germany.
This product includes material provided by Thorsten Glaser.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report – diffs preferred.