Function report |
Source Code:kernel\bpf\bpf_lru_list.c |
Create Date:2022-07-28 13:12:40 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:bpf_percpu_lru_pop_free
Proto:static struct bpf_lru_node *bpf_percpu_lru_pop_free(struct bpf_lru *lru, u32 hash)
Type:struct bpf_lru_node
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct bpf_lru * | lru | |
| u32 | hash |
| 403 | struct bpf_lru_node * node = NULL |
| 408 | l = per_cpu_ptr(percpu_lru, cpu) |
| 410 | raw_spin_lock_irqsave( & lock, flags) |
| 414 | free_list = lists[BPF_LRU_LIST_T_FREE] |
| 415 | If list_empty - tests whether a list is empty*@head: the list to test. Then Calls __bpf_lru_list_shrink_inactive() to shrink some* ref-bit-cleared nodes and move them to the designated* free list |
| 421 | *(node + hash_offset) = hash |
| 422 | ref = 0 |
| 426 | raw_spin_unlock_irqrestore( & lock, flags) |
| 428 | Return node |
| Name | Describe |
|---|---|
| bpf_lru_pop_free |
| 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 |