1 /*******************************************************************************
2 ################################################################################
3 # Copyright (c) [2017-2019] [Radisys] #
5 # Licensed under the Apache License, Version 2.0 (the "License"); #
6 # you may not use this file except in compliance with the License. #
7 # You may obtain a copy of the License at #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
11 # Unless required by applicable law or agreed to in writing, software #
12 # distributed under the License is distributed on an "AS IS" BASIS, #
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
14 # See the License for the specific language governing permissions and #
15 # limitations under the License. #
16 ################################################################################
17 *******************************************************************************/
19 /********************************************************************20**
21 Name: System Services -- Queueing
25 Desc: System Services queuing functions.
29 *********************************************************************21*/
40 /* demand queue structure */
41 typedef struct ssDmndQ
43 SsSemaId dmndQSema; /* lock for queue access */
44 SLockId dmndQLock[SS_MAX_NUM_DQ]; /* lock for each byte in
46 Queue queue[SS_MAX_NUM_DQ]; /* the queues */
47 #ifndef TENB_RTLIN_CHANGES
48 U8 bitMask[SS_DQ_BIT_MASK_LEN]; /* bit mask */
55 EXTERN S16 ssInitDmndQ ARGS((SsDmndQ *queue));
56 EXTERN S16 ssDestroyDmndQ ARGS((SsDmndQ *queue));
57 EXTERN S16 ssDmndQPut ARGS((SsDmndQ *queue, Buffer *mBuf, \
58 Prior prior, Order order));
59 EXTERN S16 ssDmndQGet ARGS((SsDmndQ *queue, Buffer **mBuf, \
61 EXTERN S16 ssDmndQWait ARGS((SsDmndQ *queue));
63 EXTERN S16 ssFndLenDmndQ ARGS((SsDmndQ *queue, Prior prior, QLen *len));
70 #endif /* __SSQUEUEX__ */
73 /********************************************************************30**
76 **********************************************************************/