| Main index | Section 9 | 日本語 | Options |
#include <sys/param.h>
#include <sys/bus.h>
#include <machine/bus.h>
#include <sys/rman.h>
#include <machine/resource.h>
| 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). | |
/* 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);
| BUS_RELEASE_RESOURCE (9) | May 18, 2000 |
| Main index | Section 9 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | Ken Thompson has an automobile which he helped design. Unlike most automobiles, it has neither speedometer, nor gas gauge, nor any of the other numerous idiot lights which plague the modern driver. Rather, if the driver makes a mistake, a giant “?” lights up in the center of the dashboard. “The experienced driver,” says Thompson, “will usually know what's wrong.” | ” |