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

Function work_qid2wq

sched/wqueue/wqueue.h:136–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 ****************************************************************************/
135
136static inline_function FAR struct kwork_wqueue_s *work_qid2wq(int qid)
137{
138#ifdef CONFIG_SCHED_HPWORK
139 if (qid == HPWORK)
140 {
141 return (FAR struct kwork_wqueue_s *)&g_hpwork;
142 }
143 else
144#endif
145#ifdef CONFIG_SCHED_LPWORK
146 if (qid == LPWORK)
147 {
148 return (FAR struct kwork_wqueue_s *)&g_lpwork;
149 }
150 else
151#endif
152 {
153 return NULL;
154 }
155}
156
157/****************************************************************************
158 * Name: work_insert_pending

Callers 5

work_queue_priorityFunction · 0.85
work_cancelFunction · 0.85
work_cancel_syncFunction · 0.85
work_queue_nextFunction · 0.85
work_queueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected