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

Function intr_map_init

freebsd/kern/subr_intr.c:1724–1733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1722}
1723
1724static void
1725intr_map_init(void *dummy __unused)
1726{
1727
1728 mtx_init(&irq_map_lock, "intr map table", NULL, MTX_DEF);
1729
1730 irq_map_count = 2 * intr_nirq;
1731 irq_map = mallocarray(irq_map_count, sizeof(struct intr_map_entry*),
1732 M_INTRNG, M_WAITOK | M_ZERO);
1733}
1734SYSINIT(intr_map_init, SI_SUB_INTR, SI_ORDER_FIRST, intr_map_init, NULL);

Callers

nothing calls this directly

Calls 2

mtx_initFunction · 0.85
mallocarrayFunction · 0.70

Tested by

no test coverage detected