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

Function XX_PreallocAndBindIntr

freebsd/contrib/ncsw/user/env/xx.c:312–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310}
311
312t_Error
313XX_PreallocAndBindIntr(device_t dev, uintptr_t irq, unsigned int cpu)
314{
315 struct resource *r;
316 unsigned int inum;
317 t_Error error;
318
319 r = (struct resource *)irq;
320 inum = rman_get_start(r);
321
322 error = XX_SetIntr(irq, XX_Dispatch, &XX_IntrInfo[inum]);
323 if (error != 0)
324 return (error);
325
326 error = bus_bind_intr(dev, r, cpu);
327 if (error != 0)
328 return (error);
329
330 XX_IntrInfo[inum].flags = XX_INTR_FLAG_PREALLOCATED;
331 XX_IntrInfo[inum].cpu = cpu;
332
333 return (E_OK);
334}
335
336t_Error
337XX_DeallocIntr(uintptr_t irq)

Callers

nothing calls this directly

Calls 3

rman_get_startFunction · 0.85
XX_SetIntrFunction · 0.85
bus_bind_intrFunction · 0.85

Tested by

no test coverage detected