sdi_clrconfig --
free devices claimed by target controllers
Synopsis
#include <sys/sdi.h>
void sdi_clrconfig(struct owner *op, int flags, void (*rinit)());
Description
sdi_clrconfig
essentially undoes what was done by a prior call to
sdi_doconfig(D3sdi).
When the value of flags is SDI_DISCLAIM|SDI_REMOVE,
all devices claimed by the calling target driver are freed.
The address of the driver's rinit routine is then removed
from the system's rinit table.
Arguments
op
a pointer to the head of an owner list
previously returned by
sdi_doconfig(D3sdi)
flags
indicates the device or devices to be freed (values:
SDI_REMOVE or SDI_DISCLAIM)
rinit
the address of the driver's rinit routine,
which should be the same address that
was previously passed to sdi_doconfig
Return values
None
Usage
This function is typically called by the target driver's
_unload(D2sdi)
routine.