Function report |
Source Code:lib\lockref.c |
Create Date:2022-07-28 06:19:12 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:lockref_put_or_lock - decrements count unless count <= 1 before decrement*@lockref: pointer to lockref structure* Return: 1 if count updated successfully or 0 if count <= 1 and lock taken
Proto:int lockref_put_or_lock(struct lockref *lockref)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct lockref * | lockref |
166 | Note that the "cmpxchg()" reloads the "old" value for the* failure case.(count--;If count <= 1 Then Break;, Return 1;) |
175 | If count <= 1 Then Return 0 |
177 | count-- |
178 | spin_unlock( & lock) |
179 | Return 1 |
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 |