Function report |
Source Code:kernel\locking\lockdep.c |
Create Date:2022-07-28 09:50:04 |
| Last Modify:2020-03-17 14:16:01 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__lock_set_class
Proto:static int __lock_set_class(struct lockdep_map *lock, const char *name, struct lock_class_key *key, unsigned int subclass, unsigned long ip)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct lockdep_map * | lock | |
| const char * | name | |
| struct lock_class_key * | key | |
| unsigned int | subclass | |
| unsigned long | ip |
| 4119 | curr = current process |
| 4120 | merged = 0 |
| 4128 | depth = lockdep_depth |
| 4133 | If DEBUG_LOCKS_WARN_ON(!depth) Then Return 0 |
| 4136 | hlock = @depth must not be zero |
| 4137 | If Not hlock Then |
| 4138 | print_unlock_imbalance_bug(curr, lock, ip) |
| 4139 | Return 0 |
| 4144 | class_idx = class - lock_classes |
| 4146 | lockdep_depth = i |
| 4147 | curr_chain_key = prev_chain_key |
| 4149 | If reacquire_held_locks(curr, depth, i, & merged) Then Return 0 |
| 4156 | If DEBUG_LOCKS_WARN_ON(lockdep_depth != depth - merged) Then Return 0 |
| 4158 | Return 1 |
| Name | Describe |
|---|---|
| lock_set_class |
| 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 |