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

Function cpu_alloc_resource

freebsd/mips/mips/cpu.c:552–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

550}
551
552static struct resource *
553cpu_alloc_resource(device_t dev, device_t child, int type, int *rid,
554 rman_res_t start, rman_res_t end, rman_res_t count, u_int flags)
555{
556 struct resource *res;
557
558 if (type != SYS_RES_IRQ)
559 return (NULL);
560 res = rman_reserve_resource(&cpu_hardirq_rman, start, end, count, 0,
561 child);
562 return (res);
563}
564
565static int
566cpu_setup_intr(device_t dev, device_t child, struct resource *res, int flags,

Callers

nothing calls this directly

Calls 1

rman_reserve_resourceFunction · 0.85

Tested by

no test coverage detected