Function report |
Source Code:lib\klist.c |
Create Date:2022-07-28 06:16:24 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:klist_prev - Ante up prev node in list.*@i: Iterator structure.* First grab list lock. Decrement the reference count of the previous* node, if there was one. Grab the prev node, increment its reference* count, drop the lock, and return that prev node.
Proto:struct klist_node *klist_prev(struct klist_iter *i)
Type:struct klist_node
Parameter:
Type | Parameter | Name |
---|---|---|
struct klist_iter * | i |
335 | ( = put |
340 | spin_lock_irqsave( & k_lock, flags) |
342 | If last Then |
343 | prev = to_klist_node(prev) |
344 | If Not klist_dec_and_del(last) Then put = NULL |
346 | Else prev = to_klist_node(prev) |
349 | i_cur = NULL |
350 | When prev != to_klist_node( & k_list) cycle |
351 | If Value is more likely to compile time(!knode_dead(prev)) Then |
356 | prev = to_klist_node(prev) |
359 | spin_unlock_irqrestore( & k_lock, flags) |
363 | Return i_cur |
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 |