⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 insq.9

📁 7号信令功能代码,为开源代码
💻 9
字号:
'\" tr.\" -*- nroff -*-.\".\" @(#) insq.9,v 1.1.4.1 2004/01/12 23:33:01 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:33:01 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 INSQ 9 "2004/01/12 23:33:01" "LiS-2_16_18-8" "Linux STREAMS DDI/DKI".SH NAME.B insq\- inserts a message into a \fISTREAMS\fR message queue.SH SYNOPSIS.PP.B #include <sys/stream.h>.HP 8.BI "int " retval " = insq(queue_t *" q ", mblk_t *" emp ", mblk_t *" mp );.SH DESCRIPTION.PP.BR insq ()inserts the message pointed to by.I mpbefore the message pointed to by.I empin the queue specified by.IR q .If the message pointer.I empis.B NULLit indicates that the message pointed to by.I mpis to be inserted at the end of the queue.This means that\fB\)insq(\fI\)q\fB\), NULL, \fI\)mp\fB\))\fRis equivalent to\fB\)putq(\fI\)q\fB\), \fI\)mp\fB\))\fR..PPMessages can be inserted before other messages only if theresulting insertion would not violate the proper ordering of priority andbanded messages within the queue.  This means that high priority messages canbe inserted before all messages.  Low priority messages can only be insertedbefore low priority messages of the same or lesser priority band..SH "RETURN VALUES".PPUpon success,.BR insq ()returns true (1) and the message pointed to by.I mphas been inserted into the queue..PPUpon failure,.BR insq ()returns false (0) and the message pointed to by.I mpremains unaltered.  (See.BR "\*(lqBUGS\*(rq" " below.)".SH ERRORS.PPWhen.BR insq ()fails, it returns false (0)..BR insq ()can fail because the passed in message pointer.I mpis a.B NULLpointer;the passed in queue pointer.I qis a.B NULLpointer;the passed in queue pointer.I qdoes not point to a queue structure;the queue associated with the passed in queue pointer.I qhas flags.BR QCLOSING " or " QPROCSOFFset indicating that the queue is closing or hashad put and service routineprocessing turned off (e.g. with.BR qprocsoff (9))..PP.BR insq ()also fails if the message passed in by.I mpcannot be inserted before the message passed in by.IR emp ..SH CAVEATS.PP.SH BUGS.PP.B LiS.[LiS.]incorrectly frees the message pointed to by.I mpwhen the call to.BR insq ()fails due to a.B NULLqueue pointer.IR q ,or when the queue pointer.I qdoes not point to a valid queue structure,or when the queue pointer.I qpoints to a queue that is closing or has processing turned off.On the other hand,.B LiS.[LiS.]does not free the message pointer pointed to by.I mpwhen.BR insq ()fails because the insertion would mis-sequence the queue.Because of this bug, when.BR insq ()returns failure (0), it is difficult to determine whether the messagepointed to by.I mphas been freed or not..SH "SEE ALSO".PP.BR rmvq (9),.BR putq (9),.BR putbq (9)..SH VERSIONS.PPThis manpage was written for.B LiS\c..[LiS.].PP.BR insq ()first appeared in SVR 3..[svr3.].\".\".XX.[magic.].[svr42.].[svr4.].\".\".[$LIST$.].TA

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -