xiaoxiang781216 commented on code in PR #11850: URL: https://github.com/apache/nuttx/pull/11850#discussion_r1514229579
########## include/nuttx/fs/fs.h: ########## @@ -484,6 +484,15 @@ struct filelist spinlock_t fl_lock; /* Manage access to the file list */ uint8_t fl_rows; /* The number of rows of fl_files array */ FAR struct file **fl_files; /* The pointer of two layer file descriptors array */ + + /* Pre-allocated files to avoid allocator access during thread creation + * phase, For functional safety requirements, increase + * CONFIG_NFILE_DESCRIPTORS_PER_BLOCK could also avoid allocator access + * caused by the file descriptor exceeding the limit. + */ + + FAR struct file *fl_prefilep; Review Comment: why not pass fl_prefiles directl -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
