Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-28 13:41:44
Last Modify:2022-05-20 07:50:19 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:perf_swevent_init_cpu

Proto:static void perf_swevent_init_cpu(unsigned int cpu)

Type:void

Parameter:

TypeParameterName
unsigned intcpu
12400  swhash = per_cpu(swevent_htable, cpu)
12402  mutex_lock( & hlist_mutex)
12403  If hlist_refcount > 0 && Not Deref the hlist from the update side Then
12406  hlist = kzalloc_node - allocate zeroed memory from a particular memory node.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).*@node: memory node from which to allocate
12407  WARN_ON(!hlist)
12408  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(swevent_hlist, hlist)
12410  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
Caller
NameDescribe
perf_event_init_cpu