You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "xiaoxiang781216 (via GitHub)" <gi...@apache.org> on 2023/01/30 03:15:17 UTC

[GitHub] [nuttx] xiaoxiang781216 commented on a diff in pull request #8337: fs/procfs: sort level0 process id

xiaoxiang781216 commented on code in PR #8337:
URL: https://github.com/apache/nuttx/pull/8337#discussion_r1090140786


##########
fs/procfs/fs_procfs.c:
##########
@@ -339,6 +339,32 @@ static void procfs_enum(FAR struct tcb_s *tcb, FAR void *arg)
   dir->pid[index] = tcb->pid;
   dir->base.nentries = index + 1;
 }
+
+/****************************************************************************
+ * Name: procfs_sort_pid
+ ****************************************************************************/
+
+static void procfs_sort_pid(FAR struct procfs_level0_s *level0)
+{
+  pid_t pid;
+  int i;
+  int j;
+
+  /* Sort the process id by Bubble */
+

Review Comment:
   There is one:
   https://github.com/apache/nuttx/blob/master/include/stdlib.h#L276-L277
   but @anchao avoid to use it intentionally for simplity.



-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org