*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> kvm_getfiles (3)              



NAME    [Toc]    [Back]

     kvm_getfiles -- survey open files

LIBRARY    [Toc]    [Back]

     Kernel Data Access Library (libkvm, -lkvm)

SYNOPSIS    [Toc]    [Back]

     #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    [Toc]    [Back]

     The kvm_getfiles() function returns a (sub-)set of the open files in the
     kernel indicated by kd.  The op and arg arguments constitute a predicate
     which limits the set of files returned.  No predicates are currently

     The number of files 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    [Toc]    [Back]

     The kvm_getfiles() function will return NULL on failure.

BUGS    [Toc]    [Back]

     This routine does not belong in the kvm interface.

SEE ALSO    [Toc]    [Back]

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

FreeBSD 5.2.1			April 19, 1994			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
roff NetBSD a survey of the roff typesetting system
fstat OpenBSD display status of open files
FileCache IRIX keep more files open than the system permits
enterfile IRIX manipulate the table of open files
nfile HP-UX maximum number of open files (system-wide)
ncdnode HP-UX maximum number of open CDFS files (system-wide)
pax HP-UX Extracts, writes, and lists archive files; copies files and directory hierarchies
dcl2inc Linux postprocess ftnchek .dcl files to create separate INCLUDE files
znew OpenBSD convert compressed files to gzipped files
fropen NetBSD open a stream
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service