acassis commented on code in PR #17847:
URL: https://github.com/apache/nuttx/pull/17847#discussion_r2683681122


##########
fs/procfs/fs_procfsiobinfo.c:
##########
@@ -223,6 +229,44 @@ static ssize_t iobinfo_read(FAR struct file *filep, FAR 
char *buffer,
                              &offset);
   totalsize += copysize;
 
+#ifdef CONFIG_IOB_OWNER_TRACKING
+  buffer   += copysize;
+  buflen   -= copysize;
+
+  irqstate_t flags = spin_lock_irqsave(&g_iob_lock);
+
+  for (unsigned int i = 0; i < CONFIG_IOB_NBUFFERS; i++)
+    {
+      FAR struct iob_s *iob = iob_get_iob_by_index(i);
+
+      /* Print: PID (or -1 for ISR) and flags in hex */
+
+      if (iob->io_owner_flags)

Review Comment:
   ```suggestion
         if (iob->io_owner_flags != 0)



-- 
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]

Reply via email to