source: rtems/c/src/libchip/shmdr/initlq.c @ 6279149

4.115
Last change on this file since 6279149 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 869 bytes
Line 
1/*  void Shm_Locked_queue_Initialize( lq_cb, owner )
2 *
3 *  This routine initializes a shared memory locked queue.
4 *
5 *  Input parameters:
6 *    lq_cb - pointer to the control block of the queue
7 *            to be initialized
8 *    owner - unique idenitifier of who owns this queue.
9 *
10 *  Output parameters: NONE
11 *
12 *  COPYRIGHT (c) 1989-1999.
13 *  On-Line Applications Research Corporation (OAR).
14 *
15 *  The license and distribution terms for this file may be
16 *  found in the file LICENSE in this distribution or at
17 *  http://www.rtems.org/license/LICENSE.
18 */
19
20#include <rtems.h>
21#include "shm_driver.h"
22
23void Shm_Locked_queue_Initialize(
24  Shm_Locked_queue_Control *lq_cb,
25  uint32_t   owner
26)
27{
28  Shm_Initialize_lock( lq_cb );
29  lq_cb->front = Shm_Locked_queue_End_of_list;
30  lq_cb->rear  = Shm_Locked_queue_End_of_list;
31  lq_cb->owner = Shm_Convert(owner);
32}
Note: See TracBrowser for help on using the repository browser.