| OpenSS7 SS7 for the Common Man | © Copyright 1997-2007 OpenSS7 Corporation All Rights Reserved. Last modified: Sat, 01 Nov 2008 10:41:54 GMT | ||||||||||||||||
| |||||||||||||||||
| Manpage of DUPBDescription: 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 compactpciDUPBSection: Linux Fast-STREAMS DDI/DKI (9)Updated: 2008-10-31 Index Return to Main Contents NAMEdupb - duplicate a STREAMS message blockSYNOPSIS#include <sys/stream.h>
ARGUMENTS
INTERFACEDESCRIPTIONdupb() generates a new copy of the message block which references the same data block as the passed in data block. The b_wptr and b_rptr pointers of the new message block are set to the same values as the duplicated message block. The data block remains untouched. RETURNUpon success, dupb() returns a pointer to the duplicated message block. Upon failure, dupb() returns a NULL pointer. ERRORSWhen dupb() fails, it returns a NULL pointer. dupb() can fail because the passed in message pointer, bp, is NULL; the new message block cannot be allocated; or, the reference count, db_ref, of the data block to be duplicated has reached 255. Normaly if dupb() fails, esbbcall(9) should be called with the priority associated with the message for which duplication failed. However, the reference count db_ref, on the data block to be duplicated should be checked for 255. When the duplication fails due to this maximum count, copying the data block using copyb(9) could succeed. CONTEXTdupb() can be called from any context, including user context, module procedures, callouts, callbacks, soft interrupts (tasklets and bottom halves), and interrupt service routines. MP-STREAMSdupb() is MP-safe; however, it is the responsibility of the caller to ensure exclusive access to the passed in message block. On return, the caller has the only reference to the returned message block. NOTICESdupb() allocates message blocks with priority BPRI_MED. See allocb(9). SEE ALSOesbbcall(9), copyb(9), copymsg(9), dupmsg(9). BUGSdubp() has no known bugs. Versions of Linux Fast-STREAMS previous to 0.9.2.3 had the bug that the reference count on the data block was be permitted to wrap to zero. COMPATIBILITYdupb() is source-level compatible with SVR 4.2 MP DDI/DKI[1], Solaris®[2] and LiS[3] with the following exceptions:
See STREAMS(9) for additional compatibility information. CONFORMANCEHISTORYdupb() appears as part of SVR 4.0 STREAMS [6]. dupb() first appeared in SVR 3[7]. 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: 13:15:38 GMT, May 23, 2013 | ||||||||||||||||
| OpenSS7 SS7 for the Common Man |
| ||||||||||||||||
| Last modified: Sat, 01 Nov 2008 10:41:54 GMT © Copyright 1997-2007 OpenSS7 Corporation All Rights Reserved. |