|BUS_RELEASE_RESOURCE(9)||Kernel Developer's Manual||BUS_RELEASE_RESOURCE(9)|
release resources on a bus
dev, int type,
struct resource *r);
- dev is the device that owns the resource.
- type is the type of resource that is released. It must be of the same type you allocated it as before. See bus_alloc_resource(9) for valid types.
- rid is the resource ID of the resource. The rid value must be the same as the one returned by bus_alloc_resource(9).
- r is the pointer to struct resource, i.e., the resource itself, returned by bus_alloc_resource(9).
EINVAL is returned, if the device
dev has no parent,
otherwise. The kernel will panic, if it cannot release the resource.
/* deactivate IRQ */ bus_teardown_intr(dev, foosoftc->irqres, foosoftc->irqid); /* release IRQ resource */ bus_release_resource(dev, SYS_RES_IRQ, foosoftc->irqid, foosoftc->irqres); /* release I/O port resource */ bus_release_resource(dev, SYS_RES_IOPORT, foosoftc->portid, foosoftc->portres);
This manual page was written by Alexander Langer <email@example.com>.
|May 18, 2000||Debian|