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

Function smapi_detach

freebsd/i386/bios/smapi.c:268–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268static int
269smapi_detach (device_t dev)
270{
271 struct smapi_softc *sc;
272
273 sc = device_get_softc(dev);
274
275 destroy_dev(sc->cdev);
276
277 if (sc->res)
278 bus_release_resource(dev, SYS_RES_MEMORY, sc->rid, sc->res);
279
280 return (0);
281}
282
283static int
284smapi_modevent (module_t mod, int what, void *arg)

Callers

nothing calls this directly

Calls 3

device_get_softcFunction · 0.85
destroy_devFunction · 0.85
bus_release_resourceFunction · 0.85

Tested by

no test coverage detected