DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

sdi_unlink_target(D3sdi)


sdi_unlink_target -- unlink an owner structure from an owner list

Synopsis

   #include <sys/sdi.h>

struct owner *sdi_unlink_target(struct owner *oplist, struct owner *op);

Description

sdi_unlink_target unlinks the owner structure, op, from the list of owner structures, oplist, linked using the ``target_link'' field and return the resulting owner list. It also sets the ``op->target_link'' field to NULL, but it does not free up memory used by the op owner structure.

Arguments


oplist
pointer to the owner list for a given target

op
pointer to the owner structure to be unlinked

Return values

Returns the new owner list.

Usage

sdi_unlink_target( ) is typically used by target drivers to manipulate their owner lists as a result of a hot remove operation.

Context and synchronization

Non-blockable context.

Driver-defined basic locks, read/write locks, and sleep locks can be held across calls to this function.

Applicable hardware

x86/Pentium compatible architectures

Version applicability

sdi: 3, 4 target drivers.

References

owner(D4sdi)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005