Function report |
Source Code:kernel\bpf\percpu_freelist.c |
Create Date:2022-07-28 13:12:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:pcpu_freelist_populate
Proto:void pcpu_freelist_populate(struct pcpu_freelist *s, void *buf, u32 elem_size, u32 nr_elems)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct pcpu_freelist * | s | |
void * | buf | |
u32 | elem_size | |
u32 | nr_elems |
62 | pcpu_entries = nr_elems / num_possible_cpus() + 1 |
63 | i = 0 |
69 | local_irq_save(flags) |
71 | again : |
72 | head = per_cpu_ptr(freelist, cpu) |
73 | ___pcpu_freelist_push(head, buf) |
74 | i++ |
78 | If i % pcpu_entries Then Go to again |
Name | Describe |
---|---|
prealloc_elems_and_freelist |
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 |