函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cgroup_pidlist_destroy_work_fn

函数原型:static void cgroup_pidlist_destroy_work_fn(struct work_struct *work)

返回类型:void

参数:

类型参数名称
struct work_struct *work
215  dwork等于to_delayed_work(work)
216  l等于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.(dwork, structcgroup_pidlist, destroy_dwork)
218  struct cgroup_pidlist * tofree = NULL
220  mutex_lock( & pidlist_mutex)
226  如果非delayed_work_pending - Find out whether a delayable work item is currently* pending*@w: The work item in question(dwork)则
227  删除链表项
228  kvfree(array of xids )
229  put_pid_ns(ns)
230  tofree等于l
233  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.
234  kfree(tofree)