瀏覽代碼

Documentation: Add nested versions of mutex locks to docs

Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Robert P. J. Day 17 年之前
父節點
當前提交
343b901980
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Documentation/mutex-design.txt

+ 3 - 1
Documentation/mutex-design.txt

@@ -133,4 +133,6 @@ the APIs of 'struct mutex' have been streamlined:
  int  mutex_trylock(struct mutex *lock);
  void mutex_unlock(struct mutex *lock);
  int  mutex_is_locked(struct mutex *lock);
-
+ void mutex_lock_nested(struct mutex *lock, unsigned int subclass);
+ int  mutex_lock_interruptible_nested(struct mutex *lock,
+                                      unsigned int subclass);