DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

rinit(D2sdi)


rinit -- claim and initialize devices

Synopsis

   #include <sys/sdi.h>
   #include <sys/ddi.h>

void prefixrinit(void);

Description

The rinit( ) entry point routine is responsible for claiming and initializing any devices. It is called by the sdi_register(D3sdi) function and usually by the target driver's start(D2sdi) routine. Normally, rinit( ) calls the sdi_doconfig(D3sdi) function to get a list of owner(D4sdi) structures, one for each device claimed by this target driver.

For each owner structure, the rinit( ) routine should initialize the maj.b_maj, maj.c_maj, maj.minors_per, maj.first_minor members of the owner structure. It should also create and initialize any structures necessary for that device for the target driver's internal use. The rinit( ) routine is called every time an HBA is inserted or removed, and the resultant list of owner structures returned by sdi_doconfig( ) may have devices removed and inserted.

Arguments

None

Context and synchronization

Non-blockable context. Interrupts are enabled but processes are not yet or no longer available.

Applicable hardware

All

Version applicability

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

Return values

None

See Also

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