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

Function sched_note_cpu_started

drivers/note/note_driver.c:860–896  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

858}
859
860void sched_note_cpu_started(FAR struct tcb_s *tcb)
861{
862 struct note_cpu_started_s note;
863 FAR struct note_driver_s **driver;
864 bool formatted = false;
865
866 for (driver = g_note_drivers; *driver; driver++)
867 {
868 if (!note_isenabled(*driver))
869 {
870 continue;
871 }
872
873 if (note_cpu_started(*driver, tcb))
874 {
875 continue;
876 }
877
878 if ((*driver)->ops->add == NULL)
879 {
880 continue;
881 }
882
883 /* Format the note */
884
885 if (!formatted)
886 {
887 formatted = true;
888 note_common(tcb, &note.ncs_cmn, sizeof(struct note_cpu_started_s),
889 NOTE_CPU_STARTED);
890 }
891
892 /* Add the note to circular buffer */
893
894 note_add(*driver, &note, sizeof(struct note_cpu_started_s));
895 }
896}
897
898void sched_note_cpu_pause(FAR struct tcb_s *tcb, int cpu)
899{

Callers 15

host_cpu_startedFunction · 0.85
riscv_cpu_bootFunction · 0.85
core1_bootFunction · 0.85
xtensa_appcpu_startFunction · 0.85
xtensa_appcpu_startFunction · 0.85
arm64_smp_init_topFunction · 0.85
arm_start_handlerFunction · 0.85
cpu1_bootFunction · 0.85
cpu1_bootFunction · 0.85
arm_start_handlerFunction · 0.85
core1_bootFunction · 0.85
core1_bootFunction · 0.85

Calls 2

note_isenabledFunction · 0.85
note_commonFunction · 0.85

Tested by

no test coverage detected