函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Used to destroy all pidlists lingering waiting for destroy timer. None* should be left afterwards.

函数原型:void cgroup1_pidlist_destroy_all(struct cgroup *cgrp)

返回类型:void

参数:

类型参数名称
struct cgroup *cgrp
204  mutex_lock( & pidlist_mutex)
205  list_for_each_entry_safe - iterate over list of given type safe against removal of list entry*@pos: the type * to use as a loop cursor.*@n: another type * to use as temporary storage*@head: the head for your list.(l, tmp_l, & * list of pidlists, up to two for each namespace (one for procs, one * for tasks); created on demand., links)
206  修改延迟工作队列
207  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.
209  lush_workqueue - ensure that any scheduled work has run to completion.*@wq: workqueue to flush* This function sleeps until all work items which were queued on entry* have finished execution, but it is not livelocked by new incoming ones.
210  BUG_ON(!链表为空)
调用者
名称描述
css_free_rwork_fnss destruction is four-stage process