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

Function nexus_setup_intr

freebsd/arm64/arm64/nexus.c:301–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301static int
302nexus_setup_intr(device_t dev, device_t child, struct resource *res, int flags,
303 driver_filter_t *filt, driver_intr_t *intr, void *arg, void **cookiep)
304{
305 int error;
306
307 if ((rman_get_flags(res) & RF_SHAREABLE) == 0)
308 flags |= INTR_EXCL;
309
310 /* We depend here on rman_activate_resource() being idempotent. */
311 error = rman_activate_resource(res);
312 if (error)
313 return (error);
314
315 error = intr_setup_irq(child, res, filt, intr, arg, flags, cookiep);
316
317 return (error);
318}
319
320static int
321nexus_teardown_intr(device_t dev, device_t child, struct resource *r, void *ih)

Callers

nothing calls this directly

Calls 3

rman_get_flagsFunction · 0.85
rman_activate_resourceFunction · 0.85
intr_setup_irqFunction · 0.85

Tested by

no test coverage detected