kinfo_getfile
files = kinfo_getfile(kp->ki_pid, &cnt);
kinfo_getfile(pid_t _pid, int *_cntp);
kif = kinfo_getfile(getpid(), &cnt);