anchao commented on code in PR #11140:
URL: https://github.com/apache/nuttx/pull/11140#discussion_r1388412538
##########
fs/inode/fs_files.c:
##########
@@ -51,14 +51,47 @@
* Private Functions
****************************************************************************/
+/****************************************************************************
+ * Name: files_fget_index
+ ****************************************************************************/
+
+static FAR struct file *files_fget_index(FAR struct filelist *list,
+ int l1, int l2)
+{
+ FAR struct file *filep;
+ irqstate_t flags;
+
+ flags = enter_critical_section();
+
+ filep = &list->fl_files[l1][l2];
+
+ leave_critical_section(flags);
+
+ return filep;
+}
+
+/****************************************************************************
+ * Name: files_fget
+ ****************************************************************************/
+
+static FAR struct file *files_fget(FAR struct filelist *list, int fd)
Review Comment:
I do not like files_get , files_fget align with linux kernel
--
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]