From 988d301c76e83d2a4a86d525ad257a8e68621535 Mon Sep 17 00:00:00 2001 From: rawcoder Date: Tue, 6 Sep 2016 16:24:33 +0530 Subject: [PATCH] Update sync-5.md added missing ``` --- SyncPrim/sync-5.md | 1 + 1 file changed, 1 insertion(+) diff --git a/SyncPrim/sync-5.md b/SyncPrim/sync-5.md index 17539d6..53e850f 100644 --- a/SyncPrim/sync-5.md +++ b/SyncPrim/sync-5.md @@ -209,6 +209,7 @@ As you already may guess, the `LOCK_CONTENDED` macro does all job for us. Let's ```C #define LOCK_CONTENDED(_lock, try, lock) \ lock(_lock) +``` As we may see it just calls the `lock` function which is third parameter of the `LOCK_CONTENDED` macro with the given `rw_semaphore`. In our case the third parameter of the `LOCK_CONTENDED` macro is the `__down_write` function which is architecture specific function and located in the [arch/x86/include/asm/rwsem.h](https://github.com/torvalds/linux/blob/master/arch/x86/include/asm/rwsem.h) header file. Let's look at the implementation of the `__down_write` function: