kvm_getfiles man page on FreeBSD

Man page or keyword search:  
man Server   9747 pages
apropos Keyword Search (all sections)
Output format
FreeBSD logo
[printable version]

KVM_GETFILES(3)		 BSD Library Functions Manual	       KVM_GETFILES(3)

     kvm_getfiles — survey open files

     Kernel Data Access Library (libkvm, -lkvm)

     #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);

     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.

     The kvm_getfiles() function will return NULL on failure.

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

     This routine does not belong in the kvm interface.

BSD				April 19, 1994				   BSD

List of man pages available for FreeBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net