函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:puset_css_alloc - allocate a cpuset css* cgrp: control group that the new cpuset will be part of

函数原型:static struct cgroup_subsys_state *cpuset_css_alloc(struct cgroup_subsys_state *parent_css)

返回类型:struct cgroup_subsys_state

参数:

类型参数名称
struct cgroup_subsys_state *parent_css
2701  如果非parent_css则返回:css
2704  cs等于分配内存并置零
2705  如果非cs则返回:错误号
2708  如果alloc_cpumasks - allocate three cpumasks for cpuset*@cs: the cpuset that have cpumasks to be allocated.*@tmp: the tmpmasks structure pointer* Return: 0 if successful, -ENOMEM otherwise.* Only one of the two input arguments should be non-NULL.
2709  kfree(cs)
2710  返回:错误号
2713  设置内存位
2714  nodes_clear(mems_allowed)
2715  nodes_clear(effective_mems)
2716  Initialize a frequency meter
2717  for custom sched domain 等于负1
2719  返回:css