DragonFly On-Line Manual Pages
KVM_GETFILES(3) DragonFly Library Functions Manual KVM_GETFILES(3)
kvm_getfiles -- survey open files
Kernel Data Access Library (libkvm, -lkvm)
struct kinfo_file *
kvm_getfiles(kvm_t *kd, int op, int arg, int *cnt);
kvm_getfiles() returns a (sub-)set of the open files in the kernel indi-
cated by kd. The op and arg arguments constitute a predicate which lim-
its the set of files returned. No predicates are currently defined.
The number of files found is returned in the reference parameter cnt.
The files are returned as a contiguous array of kinfo_file structures.
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
kvm_getfiles() 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.
DragonFly 5.3 October 14, 2015 DragonFly 5.3