函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\percpu_freelist.c Create Date:2022-07-27 14:28:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__pcpu_freelist_pop

函数原型:struct pcpu_freelist_node *__pcpu_freelist_pop(struct pcpu_freelist *s)

返回类型:struct pcpu_freelist_node

参数:

类型参数名称
struct pcpu_freelist *s
90  orig_cpu等于cpu等于These macros fold the SMP functionality into a single CPU system()
91  当1循环
92  head等于per_cpu_ptr(freelist, cpu)
93  raw_spin_lock( & lock)
94  node等于first
95  如果node
96  first等于next
98  返回:node
100  raw_spin_unlock( & lock)
101  cpu等于pumask_next - get the next cpu in a cpumask*@n: the cpu prior to the place to search (ie. return will be > @n)*@srcp: the cpumask pointer* Returns >= nr_cpu_ids if no further cpus set.
102  如果cpu大于等于CPU数量cpu等于0
104  如果cpu恒等于orig_cpu则返回:NULL
调用者
名称描述
pcpu_freelist_pop
alloc_htab_elem