Manual Pages for UNIX Darwin command on man kvm_getfiles
MyWebUniversity

Manual Pages for UNIX Darwin command on man kvm_getfiles

KVMGETFILES(3) BSD Library Functions Manual KVMGETFILES(3)

NAME

kkvvmmggeettffiilleess - survey open files

SYNOPSIS

##iinncclluuddee <>

##ddeeffiinnee KKEERRNNEELL

##iinncclluuddee <>

##uunnddeeff KKEERRNNEELL

char * kkvvmmggeettffiilleess(kvmt *kd, int op, int arg, int *cnt);

DESCRIPTION

kkvvmmggeettffiilleess() returns a (sub-)set of the open files in the kernel indi-

cated by kd. The op and arg 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 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

kkvvmmggeettffiilleess() will return NULL on failure.

BUGS

This routine does not belong in the kvm interface.

SEE ALSO

kvm(3), kvmopen(3), kvmopenfiles(3), kvmclose(3), kvmread(3), kvmwrite(3), kvmnlist(3), kvmgeterr(3) BSD April 19, 1994 BSD




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™