Changes between Version 6 and Version 7 of kernel_locks
- Timestamp:
- Dec 2, 2014, 7:14:03 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
kernel_locks
v6 v7 3 3 [[PageOutline]] 4 4 5 The [source:soft/giet_vm/giet_common/locks.c locks.c] and [source:soft/giet_vm/giet_common/locks.h locks.h] files define the functions used to take & release the kernel locks. These locks are implemented as spin-lockswith a waiting queue (based on a ticket allocator scheme) to enforce fairness and avoid live-lock situations. The GIET_LOCK_MAX_TICKET define the wrapping value for the ticket allocator.5 The [source:soft/giet_vm/giet_common/locks.c locks.c] and [source:soft/giet_vm/giet_common/locks.h locks.h] files define the functions used by the kernel to take & release locks protecting exclusive access to a shared resource. These locks are implemented as spin-locks, with a waiting queue (based on a ticket allocator scheme) to enforce fairness and avoid live-lock situations. The GIET_LOCK_MAX_TICKET define the wrapping value for the ticket allocator. 6 6 7 7 The lock access functions are prefixed by "_" to remind that they can only be executed by a processor in kernel mode.