| OpenSS7 SS7 for the Common Man | © Copyright 1997-2007 OpenSS7 Corporation All Rights Reserved. Last modified: Sat, 01 Nov 2008 10:42:05 GMT | ||||||||||||||||
| |||||||||||||||||
| Manpage of MOD_INSTALLDescription: Manual PageKeywords: ss7 ss7/ip ss7 over ip ss7 mtp ss7 sccp ss7 tcap sigtran mtp sccp tcap openss7 acb56 linux telephony pstn linux telephony linux nebs linux compactpciMOD_INSTALLSection: OpenSS7 STREAMS Compatibility DDI/DKI (9)Updated: 2008-10-31 Index Return to Main Contents NAMEmod_install - installs a loadable kernel module in the STREAMS executiveSYNOPSIS#define _SUN_SOURCE
ARGUMENTS
DESCRIPTIONmod_install() must be called from a module _init(9) routine. RETURNWhen mod_install() succeeds, it returns zero (0); when it fails, it returns non-zero. ERRORSCONTEXTmod_install() can be called from a non-blocking context. It is intended to be called from module initialization routine. MP-STREAMSmod_install() is MP-safe when called from the correct context. NOTICESmod_install() is a Solaris®-specific function: _SUN_SOURCE must be defined before including DDI/DKI include files to expose this symbol. OpenSS7 STREAMS Compatibility must also have been compiled with CONFIG_STREAMS_COMPAT_SUN or CONFIG_STREAMS_COMPAT_SUN_MODULE defined. EXAMPLEFollowing is a canonical example of an _init(9) function using mod_install():
int
_init(void)
{
int result;
result =
ddi_soft_state_init(&xxx_statep,
sizeof(xxx_state_t), 0);
if (result != 0) {
return (result);
}
result = mod_install(&xxx_modlinkage);
if (result != 0) {
ddi_soft_state_fini(&xxx_statep);
return (result);
}
return (0);
}
SEE ALSOmod_remove(9), mod_info(9), _init(9), _info(9), _fini(9), ddi_soft_state_init(9), ddi_soft_state_fini(9), suncompat(9). BUGSmod_install() has no known bugs. COMPATIBILITYmod_install() is compatible with Solaris® with the following portability considerations:
See STREAMS(9) for additional compatibility information. CONFORMANCESolaris® SUNDDI documentation[2]. HISTORYmod_install() first appeared in Solaris® 2.5. REFERENCES
TRADEMARKS
Other trademarks are the property of their respective owners. IDENTIFICATION
Copyright©1997-2008OpenSS7 Corp.
All Rights Reserved.
Index
This document was created by man2html, using the manual pages. Time: 10:27:07 GMT, May 21, 2013 | ||||||||||||||||
| OpenSS7 SS7 for the Common Man |
| ||||||||||||||||
| Last modified: Sat, 01 Nov 2008 10:42:05 GMT © Copyright 1997-2007 OpenSS7 Corporation All Rights Reserved. |