Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ kvm_getfiles(3) — BSD/386 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

kvm(3)

kvm_open(3)

kvm_openfiles(3)

kvm_close(3)

kvm_read(3)

kvm_write(3)

kvm_nlist(3)

kvm_geterr(3)

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

NAME
     kvmgetfiles - survey open files

SYNOPSIS
     #include <kvm.h>
     #include <sys/kinfo.h>
     #define KERNEL
     #include <sys/file.h>
     #undef KERNEL

     char *
     kvmgetfiles(kvmt *kd, int op, int arg, int *cnt)

DESCRIPTION
     kvmgetfiles() 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, preceed-
     ed 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
     kvmgetfiles() will return NULL on failure.

BUGS
     This routine does not belong in the kvm interface.

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

BSDI BSD/386                    March 26, 1993                               1





























Typewritten Software • bear@typewritten.org • Edmonds, WA 98026