BSD 4_4 development
[unix-history] / usr / share / man / cat3 / kvm_getfiles.0
KVM_GETFILES(3) BSD Programmer's Manual KVM_GETFILES(3)
N\bNA\bAM\bME\bE
k\bkv\bvm\bm_\b_g\bge\bet\btf\bfi\bil\ble\bes\bs - survey open files
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
#\b#i\bin\bnc\bcl\blu\bud\bde\be <\b<k\bkv\bvm\bm.\b.h\bh>\b>
#\b#i\bin\bnc\bcl\blu\bud\bde\be <\b<s\bsy\bys\bs/\b/k\bki\bin\bnf\bfo\bo.\b.h\bh>\b>
#\b#d\bde\bef\bfi\bin\bne\be K\bKE\bER\bRN\bNE\bEL\bL
#\b#i\bin\bnc\bcl\blu\bud\bde\be <\b<s\bsy\bys\bs/\b/f\bfi\bil\ble\be.\b.h\bh>\b>
#\b#u\bun\bnd\bde\bef\bf K\bKE\bER\bRN\bNE\bEL\bL
_\bc_\bh_\ba_\br _\b*
k\bkv\bvm\bm_\b_g\bge\bet\btf\bfi\bil\ble\bes\bs(_\bk_\bv_\bm_\b__\bt _\b*_\bk_\bd, _\bi_\bn_\bt _\bo_\bp, _\bi_\bn_\bt _\ba_\br_\bg, _\bi_\bn_\bt _\b*_\bc_\bn_\bt);
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
k\bkv\bvm\bm_\b_g\bge\bet\btf\bfi\bil\ble\bes\bs() returns a (sub-)set of the open files in the kernel indi-
cated by _\bk_\bd_\b. The _\bo_\bp and _\ba_\br_\bg 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 _\bc_\bn_\bt.
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.
R\bRE\bET\bTU\bUR\bRN\bN V\bVA\bAL\bLU\bUE\bES\bS
k\bkv\bvm\bm_\b_g\bge\bet\btf\bfi\bil\ble\bes\bs() will return NULL on failure.
B\bBU\bUG\bGS\bS
This routine does not belong in the kvm interface.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
kvm(3), kvm_open(3), kvm_openfiles(3), kvm_close(3), kvm_read(3),
kvm_write(3), kvm_nlist(3), kvm_geterr(3)
4.4BSD June 4, 1993 1