Function report |
Source Code:kernel\locking\mutex.c |
Create Date:2022-07-28 09:47:37 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:atomic_dec_and_mutex_lock - return holding mutex if we dec to 0*@cnt: the atomic which we are to dec*@lock: the mutex to return holding if we dec to 0* return true and hold lock if we dec to 0, return false otherwise
Proto:int atomic_dec_and_mutex_lock(atomic_t *cnt, struct mutex *lock)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| atomic_t * | cnt | |
| struct mutex * | lock |
| 1472 | mutex_lock(lock) |
| 1473 | If Not atomic_dec_and_test(cnt) Then |
| 1479 | Return 1 |
| Name | Describe |
|---|---|
| perf_mmap_close | A buffer can be mmap()ed multiple times; either directly through the same* event, or through other events by use of perf_event_set_output().* In order to undo the VM accounting done by perf_mmap() we need to destroy |
| put_callchain_buffers |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |