diff options
Diffstat (limited to 'Documentation/DocBook/kernel-locking.tmpl')
| -rw-r--r-- | Documentation/DocBook/kernel-locking.tmpl | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Documentation/DocBook/kernel-locking.tmpl b/Documentation/DocBook/kernel-locking.tmpl index 084f6ad7b7a0..a0d479d1e1dd 100644 --- a/Documentation/DocBook/kernel-locking.tmpl +++ b/Documentation/DocBook/kernel-locking.tmpl | |||
| @@ -1922,9 +1922,12 @@ machines due to caching. | |||
| 1922 | <function>mutex_lock()</function> | 1922 | <function>mutex_lock()</function> |
| 1923 | </para> | 1923 | </para> |
| 1924 | <para> | 1924 | <para> |
| 1925 | There is a <function>mutex_trylock()</function> which can be | 1925 | There is a <function>mutex_trylock()</function> which does not |
| 1926 | used inside interrupt context, as it will not sleep. | 1926 | sleep. Still, it must not be used inside interrupt context since |
| 1927 | its implementation is not safe for that. | ||
| 1927 | <function>mutex_unlock()</function> will also never sleep. | 1928 | <function>mutex_unlock()</function> will also never sleep. |
| 1929 | It cannot be used in interrupt context either since a mutex | ||
| 1930 | must be released by the same task that acquired it. | ||
| 1928 | </para> | 1931 | </para> |
| 1929 | </listitem> | 1932 | </listitem> |
| 1930 | </itemizedlist> | 1933 | </itemizedlist> |
| @@ -1958,6 +1961,12 @@ machines due to caching. | |||
| 1958 | </sect1> | 1961 | </sect1> |
| 1959 | </chapter> | 1962 | </chapter> |
| 1960 | 1963 | ||
| 1964 | <chapter id="apiref"> | ||
| 1965 | <title>Mutex API reference</title> | ||
| 1966 | !Iinclude/linux/mutex.h | ||
| 1967 | !Ekernel/mutex.c | ||
| 1968 | </chapter> | ||
| 1969 | |||
| 1961 | <chapter id="references"> | 1970 | <chapter id="references"> |
| 1962 | <title>Further reading</title> | 1971 | <title>Further reading</title> |
| 1963 | 1972 | ||
