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

Function ithread_destroy

freebsd/kern/kern_intr.c:555–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

553}
554
555static void
556ithread_destroy(struct intr_thread *ithread)
557{
558 struct thread *td;
559
560 CTR2(KTR_INTR, "%s: killing %s", __func__, ithread->it_event->ie_name);
561 td = ithread->it_thread;
562 thread_lock(td);
563 ithread->it_flags |= IT_DEAD;
564 if (TD_AWAITING_INTR(td)) {
565 TD_CLR_IWAIT(td);
566 sched_add(td, SRQ_INTR);
567 } else
568 thread_unlock(td);
569}
570
571int
572intr_event_add_handler(struct intr_event *ie, const char *name,

Callers 2

intr_event_destroyFunction · 0.85

Calls 1

sched_addFunction · 0.70

Tested by

no test coverage detected