1
0
mirror of https://github.com/0xAX/linux-insides.git synced 2025-01-03 12:20:56 +00:00

SyncPrim/linux-sync-2.md: Fix missed description about spinlock api

Signed-off-by: SeongJae Park <sj38.park@gmail.com>
This commit is contained in:
SeongJae Park 2019-10-01 19:37:53 +02:00
parent 501ffa504d
commit 7fe8bc397a

View File

@ -12,7 +12,7 @@ We saw the [API](https://en.wikipedia.org/wiki/Application_programming_interface
* `spin_lock` - acquires given `spinlock`;
* `spin_lock_bh` - disables software [interrupts](https://en.wikipedia.org/wiki/Interrupt) and acquire given `spinlock`.
* `spin_lock_irqsave` and `spin_lock_irq` - disable interrupts on local processor and preserve/not preserve previous interrupt state in the `flags`;
* `spin_unlock` - releases given `spinlock`;
* `spin_unlock` - releases given `spinlock` and acquire given `spinlock`;
* `spin_unlock_bh` - releases given `spinlock` and enables software interrupts;
* `spin_is_locked` - returns the state of the given `spinlock`;
* and etc.