In NuttX, the current number of file descriptions is held in the fl_rows field of struct filelist. Access to that field is provided only through the /proc file file system.
Hmm.. the test is if (row * CONFIG_NFILE_DESCRIPTORS_PER_BLOCK > OPEN_MAX) { return -EMFILE; }So the current number of file descriptions must be CONFIG_NFILE_DESCRIPTORS_PER_BLOCK * fs_rows ???