kcore_get_maxfiles
kcore_get_maxfiles(NULL, maxfiles)
int kcore_get_maxfiles(struct kcore_data *, int *);
if ((retval = kcore_get_maxfiles(kc, &maxfiles)) != 0) {