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

📄 strqset.9

📁 7号信令功能代码,为开源代码
💻 9
字号:
'\" tr.\" -*- nroff -*-.\".\" @(#) strqset.9,v 1.1.4.1 2004/01/12 23:33:12 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:12 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 STRQSET 9 "2004/01/12 23:33:12" "LiS-2_16_18-8" "Linux STREAMS DDI/DKI".SH NAME.B strqset, lis_strqset\- sets attributes of a \fISTREAMS\fR message queue.SH SYNOPSIS.PP.B #include <sys/stream.h>.HP 8.BI "int " retval " = strqset(queue_t *" q ", qfields_t " what ", unsigned char " band ", long " val );.SH DESCRIPTION.PP.BR strqset ()sets the attribute requested by.I whatfor the queue pointed to by.I qand band specified by.I bandto the value specified by.IR val .The value set can be either a scalar or a pointer..PPWhen.I bandis zero,.BR strqset ()will set the attribute specified by.I whatfor the queue.When.I bandis non-zero (between 1 and 255),.BR strqset ()will set the attribute specified by.I whatfor the queue band specified by.IR band ..PPThe argument.I whatspecifies the queue (or queue band if.I bandis non-zero) attribute to be set..I whatcan be one of the following values..TP 12.B QHIWATSets the high water mark associated with the.I qor queue.IR band ..TP 12.B QLOWATSets the low water mark associated with the.I qor queue.IR band ..TP 12.B QMAXPSZSets the maximum packet size associated with the.IR q .For this operation.I bandmust be zero (0)..TP 12.B QMINPSZSets the minimum packet size associated with the.IR q .For this operation.I bandmust be zero (0)..PP.BR strqset ()provides a mechanims whereby a.IR STREAMS (4)module or driver can change informationabout a queue or queue band without directly accessing the.B queueor.B qbandstructures.Values set by.BR strqset ()are equivalent to directly accessing the.B queueor.B qbandstructure members described below..PPThe.B queuestructure contains at least the following members:.HP.BI "ulong " q_hiwat\- the high water mark for the queue..HP.BI "ulong " q_lowat\- the low water mark for the queue..HP.BI "long " q_maxpsz\- the maximum message size accepted by the queue..HP.BI "long " q_minpsz\- the minimum message size accepted by the queue..PPThe.B qbandstructure contains at least the following members:.HP.BI "ulong " qb_hiwat\- the high water mark for the band..HP.BI "ulong " qb_lowat\- the low water mark for the band..SH "RETURN VALUES".PPUpon success,.BR strqset ()returns zero (0) and sets the appropriate attribute to the appropriate value..PPUpon failure,.BR strqset ()returns a non-zero error number.The requested attribute is remains unchanged..SH ERRORS.PPWhen.BR strqset ()fails,it returns one of the following errors:.TP 12.RB [ EINVAL ]The queue pointer.I qis.BR NULL;.I qdoes not point to a valid queue structure;the queue band specified in.I banddoes not exist;.BR QMAXPSZ " or " QMINPSZwas specified for.I whatand.I bandwas non-zero;.I whatis not a valid queue or queue band attribute..TP 12.RB [ EPERM ].I whatspecified an attribute that is appropriate for.BR strqget (9),but which is invalid for.BR strqset ():.BR QCOUNT ", " QFIRST ", " QLAST " or " QFLAG ..SH CAVEATS.PPNone..SH "SEE ALSO".PP.BR strqget (9)..SH VERSIONS.PPThis manpage was written for.B LiS\c..[LiS.].PP.BR strqset ()first appeared in SVR 3..[svr3.].\".\".XX.[magic.].[svr42.].[svr4.].\".\".[$LIST$.].TA

⌨️ 快捷键说明

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