Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\percpu_freelist.c Create Date:2022-07-28 13:12:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__pcpu_freelist_pop

Proto:struct pcpu_freelist_node *__pcpu_freelist_pop(struct pcpu_freelist *s)

Type:struct pcpu_freelist_node

Parameter:

TypeParameterName
struct pcpu_freelist *s
90  orig_cpu = cpu = These macros fold the SMP functionality into a single CPU system()
91  When 1 cycle
92  head = per_cpu_ptr(freelist, cpu)
93  raw_spin_lock( & lock)
94  node = first
95  If node Then
96  first = next
98  Return 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  If cpu >= Setup number of possible processor ids Then cpu = 0
104  If cpu == orig_cpu Then Return NULL
Caller
NameDescribe
pcpu_freelist_pop