RTEMS 6.3
Loading...
Searching...
No Matches

This group contains the SMP lock implementation. More...

Files

file  cpukit/include/rtems/score/smplock.h
 This header file provides the main interfaces of the SMP Locks.
file  cpukit/include/rtems/score/smplockmcs.h
 This header file provides the interfaces of the SMP Locks related to MCS locks.
file  cpukit/include/rtems/score/smplockseq.h
 This header file provides the interfaces of the SMP Locks related to sequence locks.
file  cpukit/include/rtems/score/smplockstats.h
 This header file provides the interfaces of the SMP Locks related to lock statistics.
file  cpukit/include/rtems/score/smplockticket.h
 This header file provides the interfaces of the SMP Locks related to ticket locks.
file  cpukit/score/src/profilingsmplock.c
 This source file contains the implementation of _SMP_lock_Stats_destroy(), _SMP_lock_Stats_register_or_max_section_time(), _SMP_lock_Stats_iteration_start(), _SMP_lock_Stats_iteration_next(), and _SMP_lock_Stats_iteration_stop().
file  cpukit/score/src/smplock.c
 This source file contains the implementation of _SMP_lock_Initialize(), _SMP_lock_Destroy(), _SMP_lock_Acquire(), _SMP_lock_Release(), _SMP_lock_ISR_disable_and_acquire(), _SMP_lock_Release_and_ISR_enable(), and _SMP_lock_Is_owner().

Detailed Description

This group contains the SMP lock implementation.

The SMP lock provides mutual exclusion in SMP systems at the lowest level.

The SMP lock is implemented as a ticket lock. This provides fairness in case of concurrent lock attempts.

This SMP lock API uses a local context for acquire and release pairs. Such a context may be used to implement for example the Mellor-Crummey and Scott (MCS) locks in the future.