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

Function work_queue_priority_wq

sched/wqueue/kwork_thread.c:510–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508 ****************************************************************************/
509
510int work_queue_priority_wq(FAR struct kwork_wqueue_s *wqueue)
511{
512 FAR struct kworker_s *worker;
513 FAR struct tcb_s *tcb;
514
515 if (wqueue == NULL)
516 {
517 return -EINVAL;
518 }
519
520 /* Find for the TCB associated with matching PID */
521
522 worker = wq_get_worker(wqueue);
523
524 tcb = nxsched_get_tcb(worker[0].pid);
525
526 if (!tcb)
527 {
528 return -ESRCH;
529 }
530
531 return tcb->sched_priority;
532}
533
534int work_queue_priority(int qid)
535{

Callers 2

irq_get_wqueueFunction · 0.85
work_queue_priorityFunction · 0.85

Calls 1

nxsched_get_tcbFunction · 0.85

Tested by

no test coverage detected