MCPcopy Create free account
hub / github.com/apache/nuttx / note_common

Function note_common

drivers/note/note_driver.c:200–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198 ****************************************************************************/
199
200static void note_common(FAR struct tcb_s *tcb,
201 FAR struct note_common_s *note,
202 uint8_t length, uint8_t type)
203{
204 /* Save all of the common fields */
205
206 note->nc_length = length;
207 note->nc_type = type;
208 note->nc_cpu = this_cpu();
209
210 if (tcb == NULL)
211 {
212 note->nc_priority = CONFIG_INIT_PRIORITY;
213 note->nc_pid = 0;
214 }
215 else
216 {
217 note->nc_priority = tcb->sched_priority;
218 note->nc_pid = tcb->pid;
219 }
220
221 note->nc_systime = perf_gettime();
222}
223
224/****************************************************************************
225 * Name: note_isenabled

Callers 15

sched_note_startFunction · 0.85
sched_note_stopFunction · 0.85
sched_note_suspendFunction · 0.85
sched_note_resumeFunction · 0.85
sched_note_cpu_startFunction · 0.85
sched_note_cpu_startedFunction · 0.85
sched_note_cpu_pauseFunction · 0.85
sched_note_cpu_pausedFunction · 0.85
sched_note_cpu_resumeFunction · 0.85
sched_note_cpu_resumedFunction · 0.85
sched_note_preemptionFunction · 0.85
sched_note_csectionFunction · 0.85

Calls 1

perf_gettimeFunction · 0.50

Tested by

no test coverage detected