Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cgroup_pidlist_destroy_work_fn

Proto:static void cgroup_pidlist_destroy_work_fn(struct work_struct *work)

Type:void

Parameter:

TypeParameterName
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  If Not delayed_work_pending - Find out whether a delayable work item is currently* pending*@w: The work item in question(dwork) Then
227  deletes entry from list
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)