Function report |
Source Code:kernel\bpf\bpf_lru_list.c |
Create Date:2022-07-28 13:12:51 |
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_populate
Proto:static void bpf_percpu_lru_populate(struct bpf_lru *lru, void *buf, u32 node_offset, u32 elem_size, u32 nr_elems)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct bpf_lru * | lru | |
void * | buf | |
u32 | node_offset | |
u32 | elem_size | |
u32 | nr_elems |
584 | pcpu_entries = nr_elems / num_possible_cpus() |
586 | i = 0 |
588 | for_each_possible_cpu(cpu) |
591 | l = per_cpu_ptr(percpu_lru, cpu) |
592 | again : |
593 | node = buf + node_offset |
595 | type = BPF_LRU_LIST_T_FREE |
596 | ref = 0 |
598 | i++ |
602 | If i % pcpu_entries Then Go to again |
Name | Describe |
---|---|
bpf_lru_populate |
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 |