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

Function create_msgring_thread

freebsd/mips/nlm/cms.c:366–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364}
365
366static void
367create_msgring_thread(int hwtid)
368{
369 struct msgring_thread *mthd;
370 struct thread *td;
371 int error;
372
373 mthd = &msgring_threads[hwtid];
374 error = kproc_kthread_add(msgring_process, (void *)(uintptr_t)hwtid,
375 &msgring_proc, &td, RFSTOPPED, 2, "msgrngproc",
376 "msgthr%d", hwtid);
377 if (error)
378 panic("kproc_kthread_add() failed with %d", error);
379 mthd->thread = td;
380
381 thread_lock(td);
382 sched_class(td, PRI_ITHD);
383 sched_add(td, SRQ_INTR);
384}
385
386int
387register_msgring_handler(int startb, int endb, msgring_handler action,

Callers 2

xlp_msgring_configFunction · 0.85
start_msgring_threadsFunction · 0.85

Calls 4

kproc_kthread_addFunction · 0.50
panicFunction · 0.50
sched_classFunction · 0.50
sched_addFunction · 0.50

Tested by

no test coverage detected