Gary-Hobson commented on code in PR #7841:
URL: https://github.com/apache/nuttx/pull/7841#discussion_r1050554922


##########
drivers/note/noteram_driver.c:
##########
@@ -105,10 +108,24 @@ static struct noteram_info_s g_noteram_info =
 static struct noteram_taskname_s g_noteram_taskname;
 #endif
 
+static struct note_driver_ops_s noteram_ops =

Review Comment:
   done



##########
include/nuttx/note/note_driver.h:
##########
@@ -35,6 +39,72 @@
  * Public Types
  ****************************************************************************/
 
+struct note_driver_s;
+
+struct note_driver_ops_s
+{
+  CODE void (*write)(FAR struct note_driver_s *drv, FAR const void *note,
+                     size_t notelen);
+  CODE void (*start)(FAR struct note_driver_s *drv, FAR struct tcb_s *tcb);
+  CODE void (*stop)(FAR struct note_driver_s *drv, FAR struct tcb_s *tcb);
+#ifdef CONFIG_SCHED_INSTRUMENTATION_SWITCH
+  CODE void (*suspend)(FAR struct note_driver_s *drv, FAR struct tcb_s *tcb);
+  CODE void (*resume)(FAR struct note_driver_s *drv, FAR struct tcb_s *tcb);
+#ifdef CONFIG_SMP
+  CODE void (*cpu_start)(FAR struct note_driver_s *drv,
+                         FAR struct tcb_s *tcb, int cpu);
+  CODE void (*cpu_started)(FAR struct note_driver_s *drv,
+                           FAR struct tcb_s *tcb);
+  CODE void (*cpu_pause)(FAR struct note_driver_s *drv,
+                         FAR struct tcb_s *tcb, int cpu);
+  CODE void (*cpu_paused)(FAR struct note_driver_s *drv,
+                          FAR struct tcb_s *tcb);
+  CODE void (*cpu_resume)(FAR struct note_driver_s *drv,
+                          FAR struct tcb_s *tcb, int cpu);
+  CODE void (*cpu_resumed)(FAR struct note_driver_s *drv,
+                           FAR struct tcb_s *tcb);
+#endif

Review Comment:
   done



-- 
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-unsubscr...@nuttx.apache.org

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

Reply via email to