函数逻辑报告 |
Source Code:kernel\cgroup\cgroup-v1.c |
Create Date:2022-07-27 12:14:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Load a cgroup's pidarray with either procs' tgids or tasks' pids
函数原型:static int pidlist_array_load(struct cgroup *cgrp, enum cgroup_filetype type, struct cgroup_pidlist **lp)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct cgroup * | cgrp | |
enum cgroup_filetype | type | |
struct cgroup_pidlist ** | lp |
335 | n等于0 |
340 | lockdep_assert_held( & pidlist_mutex) |
349 | array等于kvmalloc_array(length, sizeof(pid_t), GFP_KERNEL) |
355 | 如果此条件成立可能性小(为编译器优化)(n == length)则退出 |
358 | 如果type恒等于CGROUP_FILE_PROCS则pid等于task_tgid_vnr(tsk) |
360 | 否则pid等于task_pid_vnr(tsk) |
369 | 如果type恒等于CGROUP_FILE_PROCS则length等于pidlist_uniq - given a kmalloc()ed list, strip out all duplicate entries* Returns the number of unique elements. |
373 | 如果非l则 |
379 | kvfree(array of xids ) |
380 | array of xids 等于array |
383 | 返回:0 |
名称 | 描述 |
---|---|
cgroup_pidlist_start | seq_file methods for the tasks/procs files. The seq_file position is the* next pid to display; the seq_file iterator is a pointer to the pid* in the cgroup->l->list array. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |