函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:klist_release

函数原型:static void klist_release(struct kref *kref)

返回类型:void

参数:

类型参数名称
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  删除链表项
190  加自旋锁
192  如果node不等于n则继续下一循环
195  删除链表项
196  woken等于1
197  Force strict CPU ordering.* And yes, this might be required on UP too when we're talking* to devices.()
198  唤醒中断线程
200  自旋锁解锁
201  knode_set_klist(n, NULL)