📄 dupmsg.9
字号:
'\" tr.\" -*- nroff -*-.\".\" @(#) dupmsg.9,v 1.1.4.1 2004/01/12 23:32:59 brian Exp.\".\" =========================================================================.\".\" Copyright (C) 2001-2004 OpenSS7 Corp. <www.openss7.com>.\".\" All Rights Reserved..\".\" Permission is granted to make and distribute verbatim copies of this.\" manual provided the copyright notice and this permission notice are.\" preserved on all copies..\".\" Permission is granted to copy and distribute modified versions of this.\" manual under the conditions for verbatim copying, provided that the.\" entire resulting derived work is distributed under the terms of a.\" permission notice identical to this one.\" .\" Since the Linux kernel and libraries are constantly changing, this.\" manual page may be incorrect or out-of-date. The author(s) assume no.\" responsibility for errors or omissions, or for damages resulting from.\" the use of the information contained herein. The author(s) may not.\" have taken the same level of care in the production of this manual,.\" which is licensed free of charge, as they might when working.\" professionally..\" .\" Formatted or processed versions of this manual, if unaccompanied by.\" the source, must acknowledge the copyright and authors of this work..\".\" =========================================================================.\".\" Modified 2004/01/12 23:32:59 by brian.\".\" =========================================================================.so lis.macros.R1bracket-label "\fR[\fB" "\fR]" "\fR, \fB"no-default-databasedatabase lis.refsaccumulatemove-punctuationabbreviate Ajoin-authors ", " ", " " and "et-al " et al" 2 3abbreviate-label-ranges ".."sort-adjacent-labels.R2.\".\".TH DUPMSG 9 "2004/01/12 23:32:59" "LiS-2_16_18-8" "Linux STREAMS DDI/DKI".SH NAME.B dupmsg\- duplicate a \fISTREAMS\fR message.SH SYNOPSIS.PP.B #include <sys/stream.h>.HP 8.BI "mblk_t *" msg " = dupmsg(mblk_t *" mp );.SH DESCRIPTION.PP.BR dupmsg ()duplicates all of the message blocks of a message, keeping the same datablocks.The data blocks are reused. Each data block will have its reference counterincremented. If one duplicate message alters the data in a data block, thechange affects all duplicate messages..SH "RETURN VALUES".PPUpon success,.BR dupmsg ()returns a pointer to the duplicate message,.IR msg ..PPUpon failure,.BR dupmsg ()returns.BR NULL ..SH ERRORS.PPWhen.BR dupmsg ()fails it returns.BR NULL ..BR dupmsg ()fails when the passed in message pointer.I mpis.BR NULL ;or an allocation failure occurs ona message block while duplicating..PPNormally, if.BR dupmsg ()fails and.I mpis not.BR NULL ,.BR esbbcall(9) should be called with the.I priorityassociated with the message for which duplication failed..SH CAVEATS.PP.B LiS.[LiS.]implements.BR dupmsg ()as a looping call to.BR dupb (9).One call is to.BR dupb (9)is made for each message block. If.BR dupb (9)fails, the partially duplicated message is freed using.BR freemsg (9)..SH BUGS.PP.B LiS.[LiS.]used to have some problems serializing access to the reference count in datablocks which caused inconsistencies in the reference count when duplicatemessages were freed..SH "SEE ALSO".PP.BR dupb (9),.BR copyb (9),.BR copymsg (9),.BR freemsg (9)..SH HISTORY.PP.BR dupmsg ()first appeared in SVR 3..[svr3.].SH VERSIONS.PPThis manpage was written for.B LiS\c..[LiS.].\".\".XX.[magic.].[svr42.].[svr4.].\".\".[$LIST$.].TA
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -