MCPcopy Create free account
hub / github.com/F-Stack/f-stack / taskqueue_cancel_locked

Function taskqueue_cancel_locked

freebsd/kern/subr_taskqueue.c:532–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530}
531
532static int
533taskqueue_cancel_locked(struct taskqueue *queue, struct task *task,
534 u_int *pendp)
535{
536
537 if (task->ta_pending > 0) {
538 STAILQ_REMOVE(&queue->tq_queue, task, task, ta_link);
539 if (queue->tq_hint == task)
540 queue->tq_hint = NULL;
541 }
542 if (pendp != NULL)
543 *pendp = task->ta_pending;
544 task->ta_pending = 0;
545 return (task_is_running(queue, task) ? EBUSY : 0);
546}
547
548int
549taskqueue_cancel(struct taskqueue *queue, struct task *task, u_int *pendp)

Callers 2

taskqueue_cancelFunction · 0.85
taskqueue_cancel_timeoutFunction · 0.85

Calls 1

task_is_runningFunction · 0.70

Tested by

no test coverage detected