函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Initialise the cgroup filesystem creation/reconfiguration context. Notably,* we select the namespace we're going to use.

函数原型:static int cgroup_init_fs_context(struct fs_context *fc)

返回类型:int

参数:

类型参数名称
struct fs_context *fc
2120  ctx等于分配内存并置零
2121  如果非ctx则返回:负ENOMEM
2124  ns等于cgroup_ns
2125  get_cgroup_ns(ns)
2126  fs_private等于kfc
2127  如果fs_type恒等于cgroup2_fs_typeops等于cgroup_fs_context_ops
2129  否则ops等于cgroup1_fs_context_ops
2131  put_user_ns(user_ns)
2132  user_ns等于get_user_ns(user_ns)
2133  global = true
2134  返回:0