RTEMS Logo

RTEMS 4.8.0 On-Line Library


Shared Memory Support Driver Releasing a Shared Lock

PREV UP NEXT Bookshelf BSP and Device Driver Development Guide

16.2.3.3: Releasing a Shared Lock

The Shm_Unlock routine is responsible for releasing the lock field and reenabling processor interrupts. This routines usually is implemented as follows:

void Shm_Unlock(
  Shm_Locked_queue_Control *lq_cb
)
{
  set the lock to the unlocked value
  reenable processor interrupts to their level prior
    to the lock being acquired.  This value was saved
    in the global variable Shm_isrstat
}


PREV UP NEXT Bookshelf BSP and Device Driver Development Guide

Copyright © 1988-2007OAR Corporation