mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 03:05:40 +08:00
drivers/note: Fix typos.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
f5c5d77744
commit
9b1d4de3be
@@ -34,10 +34,10 @@ config DRIVER_NOTERAM
|
|||||||
buffer.
|
buffer.
|
||||||
|
|
||||||
NOTE: This option is not available if critical sections are being
|
NOTE: This option is not available if critical sections are being
|
||||||
monitor (nor if spinlocks are being monitored in SMP configuration)
|
monitored (nor if spinlocks are being monitored in SMP configuration)
|
||||||
because there would be a logical error in the design in those cases.
|
because there would be a logical error in the design in those cases.
|
||||||
That error is that these interfaces call enter_ and leave_critical_section
|
That error is that these interfaces call enter_ and leave_critical_section
|
||||||
(and which us spinlocks in SMP mode). That means that each call to
|
(which use spinlocks in SMP mode). That means that each call to
|
||||||
sched_note_get() causes several additional entries to be added from
|
sched_note_get() causes several additional entries to be added from
|
||||||
the note buffer in order to remove one entry.
|
the note buffer in order to remove one entry.
|
||||||
|
|
||||||
|
|||||||
@@ -231,7 +231,7 @@ static int notectl_ioctl(struct file *filep, int cmd, unsigned long arg)
|
|||||||
* None.
|
* None.
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Zero on succress. A negated errno value is returned on a failure.
|
* Zero on success. A negated errno value is returned on a failure.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -949,7 +949,7 @@ config SCHED_INSTRUMENTATION
|
|||||||
void sched_note_cpu_resume(FAR struct tcb_s *tcb, int cpu);
|
void sched_note_cpu_resume(FAR struct tcb_s *tcb, int cpu);
|
||||||
void sched_note_cpu_resumed(FAR struct tcb_s *tcb);
|
void sched_note_cpu_resumed(FAR struct tcb_s *tcb);
|
||||||
|
|
||||||
NOTE: These are internal OS interfaces and are called at at very
|
NOTE: These are internal OS interfaces and are called at very
|
||||||
critical locations in the OS. There is very little that can be
|
critical locations in the OS. There is very little that can be
|
||||||
done in these interfaces. For example, normal devices may not be
|
done in these interfaces. For example, normal devices may not be
|
||||||
used; syslog output cannot be performed.
|
used; syslog output cannot be performed.
|
||||||
@@ -965,7 +965,7 @@ config SCHED_INSTRUMENTATION_EXTERNAL
|
|||||||
SCHED_INSTRUMENTATION_SPINLOCKS, SCHED_INSTRUMENTATION_SYSCALL and
|
SCHED_INSTRUMENTATION_SPINLOCKS, SCHED_INSTRUMENTATION_SYSCALL and
|
||||||
SCHED_INSTRUMENTATION_IRQHANDLER. Otherwise the common code will implement
|
SCHED_INSTRUMENTATION_IRQHANDLER. Otherwise the common code will implement
|
||||||
these callbacks and packet the arguments into note_ struct. Then the board
|
these callbacks and packet the arguments into note_ struct. Then the board
|
||||||
-specific logic just need to implement one callback:
|
-specific logic just needs to implement one callback:
|
||||||
|
|
||||||
void sched_note_add(FAR const void *note, size_t notelen);
|
void sched_note_add(FAR const void *note, size_t notelen);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user