4.4BSD/usr/share/man/cat3/kvm_getfiles.0

Compare this file to the similar file:
Show the results in this format:

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

NNAAMMEE
     kkvvmm__ggeettffiilleess - survey open files

SSYYNNOOPPSSIISS
     ##iinncclluuddee <<kkvvmm..hh>>
     ##iinncclluuddee <<ssyyss//kkiinnffoo..hh>>
     ##ddeeffiinnee KKEERRNNEELL
     ##iinncclluuddee <<ssyyss//ffiillee..hh>>
     ##uunnddeeff KKEERRNNEELL

     _c_h_a_r _*
     kkvvmm__ggeettffiilleess(_k_v_m___t _*_k_d, _i_n_t _o_p, _i_n_t _a_r_g, _i_n_t _*_c_n_t);

DDEESSCCRRIIPPTTIIOONN
     kkvvmm__ggeettffiilleess() returns a (sub-)set of the open files in the kernel indi-
     cated by _k_d_. The _o_p and _a_r_g 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 _c_n_t.
     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.

RREETTUURRNN VVAALLUUEESS
     kkvvmm__ggeettffiilleess() will return NULL on failure.

BBUUGGSS
     This routine does not belong in the kvm interface.

SSEEEE AALLSSOO
     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