DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

sdi_clrconfig(D3sdi)


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.

Context and synchronization

Blockable context.

Applicable hardware

x86/Pentium compatible architectures

Version applicability

sdi: 1, 2, 3, 4 target drivers.

References

sdi_access(D3sdi), sdi_doconfig(D3sdi), _unload(D2sdi)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005