From bb37d9bf19b627bdf7de04878090b3355e3acf1c Mon Sep 17 00:00:00 2001 From: YJack0000 Date: Fri, 10 May 2024 17:53:07 +0800 Subject: [PATCH] Update queued_spin_lock path queued_spin_lock is defined and implement in include/asm-generic/qspinlock.h --- SyncPrim/linux-sync-2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SyncPrim/linux-sync-2.md b/SyncPrim/linux-sync-2.md index 53e5b06..93c3c06 100644 --- a/SyncPrim/linux-sync-2.md +++ b/SyncPrim/linux-sync-2.md @@ -211,7 +211,7 @@ Ok, now we know data structures which represents queued spinlock in the Linux ke #define arch_spin_lock(l) queued_spin_lock(l) ``` -Yes, this function is - `queued_spin_lock`. As we may understand from the function's name, it allows a thread to acquire a lock. This function is defined in the [include/asm-generic/qspinlock_types.h](https://github.com/torvalds/linux/blob/master/include/asm-generic/qspinlock_types.h) header file and its implementation is: +Yes, this function is - `queued_spin_lock`. As we may understand from the function's name, it allows a thread to acquire a lock. This function is defined in the [include/asm-generic/qspinlock.h](https://github.com/torvalds/linux/blob/master/include/asm-generic/qspinlock.h) header file and its implementation is: ```C static __always_inline void queued_spin_lock(struct qspinlock *lock)