Changes between Version 14 and Version 15 of kernel_locks
- Timestamp:
- Jan 24, 2015, 4:45:19 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
kernel_locks
v14 v15 37 37 == Queuing Lock Access functions == 38 38 39 === void '''_ lock_init'''( spin_lock_t * lock ) ===40 This function initializes the lock ticket allocator.39 === void '''_spin_lock_init'''( spin_lock_t * lock ) === 40 This function initializes the spin_lock ticket allocator. 41 41 42 === void '''_ lock_acquire'''( spin_lock_t * lock ) ===43 This blocking function uses the atomic_increment() function, to implement a ticket allocator and provide ordered access to the protected resource. It returns only when the lock as been granted.42 === void '''_spin_lock_acquire'''( spin_lock_t * lock ) === 43 This blocking function uses the atomic_increment() function, to implement a ticket allocator and provide ordered access to the lock. It returns only when the lock as been granted. 44 44 45 === void '''_ lock_release'''( spin_lock_t * lock ) ===45 === void '''_spin_lock_release'''( spin_lock_t * lock ) === 46 46 This function releases the lock, but cannot be used for lock initialisation. It must always be called after a successful _lock_acquire(). 47 47