RTEMS Logo

RTEMS 4.9.2 On-Line Library


Shared Memory Support Driver Initializing a Shared Lock

PREV UP NEXT Bookshelf BSP and Device Driver Development Guide

16.2.3.1: Initializing a Shared Lock

The Shm_Initialize_lock routine is responsible for initializing the lock field. This routines usually is implemented as follows:

void Shm_Initialize_lock(
  Shm_Locked_queue_Control *lq_cb
)
{
  lq_cb->lock = LQ_UNLOCKED;
}


PREV UP NEXT Bookshelf BSP and Device Driver Development Guide

Copyright © 1988-2008 OAR Corporation