Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\klist.c Create Date:2022-07-28 06:16:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:klist_release

Proto:static void klist_release(struct kref *kref)

Type:void

Parameter:

TypeParameterName
struct kref *kref
186  n = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(kref, structklist_node, n_ref)
188  WARN_ON(!knode_dead(n))
189  deletes entry from list
190  spin_lock( & klist_remove_lock)
192  If node != n Then Continue
195  deletes entry from list
196  woken = 1
197  Force strict CPU ordering.* And yes, this might be required on UP too when we're talking* to devices.()
198  wake_up_process - Wake up a specific process*@p: The process to be woken up.* Attempt to wake up the nominated process and move it to the set of runnable* processes.* Return: 1 if the process was woken up, 0 if it was already running.
200  spin_unlock( & klist_remove_lock)
201  knode_set_klist(n, NULL)