Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:puset_css_alloc - allocate a cpuset css* cgrp: control group that the new cpuset will be part of

Proto:static struct cgroup_subsys_state *cpuset_css_alloc(struct cgroup_subsys_state *parent_css)

Type:struct cgroup_subsys_state

Parameter:

TypeParameterName
struct cgroup_subsys_state *parent_css
2701  If Not parent_css Then Return css
2704  cs = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
2705  If Not cs Then Return ERR_PTR( - ENOMEM)
2708  If 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. Then
2709  kfree(cs)
2710  Return ERR_PTR( - ENOMEM)
2713  Atomically set a bit in memory
2714  nodes_clear(mems_allowed)
2715  nodes_clear(effective_mems)
2716  Initialize a frequency meter
2717  for custom sched domain = -1
2719  Return css