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

Function intr_ipi_setup

freebsd/arm/arm/machdep_intr.c:175–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175void
176intr_ipi_setup(u_int ipi, const char *name, intr_ipi_handler_t *hand,
177 void *h_arg, intr_ipi_send_t *send, void *s_arg)
178{
179 struct intr_ipi *ii;
180
181 ii = intr_ipi_lookup(ipi);
182
183 KASSERT(hand != NULL, ("%s: ipi %u no handler", __func__, ipi));
184 KASSERT(send != NULL, ("%s: ipi %u no sender", __func__, ipi));
185 KASSERT(ii->ii_count == NULL, ("%s: ipi %u reused", __func__, ipi));
186
187 ii->ii_handler = hand;
188 ii->ii_handler_arg = h_arg;
189 ii->ii_send = send;
190 ii->ii_send_arg = s_arg;
191 strlcpy(ii->ii_name, name, INTR_IPI_NAMELEN);
192 ii->ii_count = intr_ipi_setup_counters(name);
193}
194
195/*
196 * Send IPI thru interrupt controller.

Callers 1

intr_pic_ipi_setupFunction · 0.85

Calls 3

intr_ipi_setup_countersFunction · 0.85
intr_ipi_lookupFunction · 0.70
strlcpyFunction · 0.50

Tested by

no test coverage detected