| OpenSS7 SS7 for the Common Man | © Copyright 1997-2007 OpenSS7 Corporation All Rights Reserved. Last modified: Sat, 01 Nov 2008 10:42:03 GMT | ||||||||||||||||
| |||||||||||||||||
| Manpage of MI_COPY_SET_RVALDescription: 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 compactpciMI_COPY_SET_RVALSection: OpenSS7 STREAMS Compatibility DDI/DKI (9)Updated: 2008-10-31 Index Return to Main Contents NAMEmi_copy_set_rval - set return value for input-output controlSYNOPSIS#define _MPS_SOURCE
ARGUMENTS
INTERFACEDESCRIPTIONmi_copy_set_rval() is one of a set of helper functions that support transparent input-output controls (see ioctl(2s) and streamio(9)) that includes mi_copyin(9), mi_copyout(9), mi_copyout_alloc(9), mi_copy_done(9), MI_COPY_CASE(9), mi_copy_set_rval(9) and mi_copy_state(9). mi_copy_set_rval() sets the return value from the ioctl(2s) call. USAGEmi_copy_set_rval() is only used in conjunction with the other mi_copy helper functions: mi_copyin(9), mi_copyout(9), mi_copyout_alloc(9), mi_copy_done(9), MI_COPY_CASE(9), mi_copy_set_rval() and mi_copy_state(9). mi_copy_set_rval() is used for TRANSPARENT input output controls where the size of the data passed by the user is not known until the initial portion of the passed in data is copied in. For non-TRANSPARENT (I_STR) input output controls, this is not a problem, because the length of the passed in data is provided directly by the user (see streamio(7)). RETURNmi_copy_set_rval() returns void. ERRORSmi_copy_set_rval() fails when passed invalid pointers. When mi_copy_set_rval() fails, it panics the kernel. EXAMPLESee mi_copyin(9) and mi_copyout(9) for examples of the usage of mi_copy_set_rval(). CONTEXTmi_copy_set_rval() can be called from any context; however, it is normally called from the STREAMS driver or module write-side queue qi_putp(9) or qi_srvp(9) procedure. MP-STREAMSmi_copy_set_rval() is MP-safe; however, it is the responsibility of the caller to ensure exclusive access to the passed in message blocks. This is normally the case when the function is called from the STREAMS driver or module write-side queue qi_putp(9) or qi_srvp(9) procedure. NOTICESmi_copy_set_rval() is an MPS®-specific function: _MPS_SOURCE, _AIX_SOURCE or _MAC_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_MPS, CONFIG_STREAMS_COMPAT_MPS_MODULE, CONFIG_STREAMS_COMPAT_AIX, CONFIG_STREAMS_COMPAT_AIX_MODULE, CONFIG_STREAMS_COMPAT_MAC or CONFIG_STREAMS_COMPAT_MAC_MODULE defined. IMPLEMENTATIONmi_copy_set_rval(9) simply sets the return value, ioc_rval member, in the iocblk(9) structure contained in the message block referenced by mp. SEE ALSOmi_copy_done(9), mi_copyin(9), mi_copyout(9), mi_copyout_alloc(9), mi_copy_state(9), MI_COPY_CASE(9), mpscompat(9), aixcompat(9), maccompat(9), STREAMS(9). BUGSmi_copy_set_rval() has no known bugs. COMPATIBILITYmi_copyin() is compatible with MPS®, AIX®, MacOT®, and Solaris®, with the following portability considerations:
See mpscompat(9), aixcompat(9), maccompat(9), and STREAMS(9) for additional compatibility considerations. CONFORMANCEMPS® DDI documentation, MacOT® DDI documentation[2, 3], AIX® documentation[4]. HISTORYmi_copy_set_rval() first appeared in MPS®. mi_copy_set_rval() is a Mentat, Inc. function that goes all the way back to the pre-OSF/1 Mentat implementations. mi_copy_set_rval() appears in MacOT®[3] and AIX®[4]. An undocumented version of mi_copy_set_rval() appears in Solaris®. 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: 23:52:09 GMT, May 23, 2013 | ||||||||||||||||
| OpenSS7 SS7 for the Common Man |
| ||||||||||||||||
| Last modified: Sat, 01 Nov 2008 10:42:03 GMT © Copyright 1997-2007 OpenSS7 Corporation All Rights Reserved. |