函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:group_get_from_fd - get a cgroup pointer from a fd*@fd: fd obtained by open(cgroup2_dir)* Find the cgroup from a fd which should be obtained* by opening a cgroup directory. Returns a pointer to the* cgroup on success. ERR_PTR is returned if the cgroup

函数原型:struct cgroup *cgroup_get_from_fd(int fd)

返回类型:struct cgroup

参数:

类型参数名称
intfd
6163  f等于fget_raw(fd)
6164  如果非f则返回:错误号
6167  css等于ss_tryget_online_from_dir - get corresponding css from a cgroup dentry*@dentry: directory dentry of interest*@ss: subsystem of interest* If @dentry is a directory for a cgroup which has @ss enabled on it, try* to get the corresponding css and return it
6168  fput(f)
6169  如果是错误则返回:错误指示
6172  cgrp等于PI: the cgroup that this css is attached to
6173  如果非group_on_dfl - test whether a cgroup is on the default hierarchy*@cgrp: the cgroup of interest* The default hierarchy is the v2 interface of cgroup and this function* can be used to test whether a cgroup is on the default hierarchy for* cases where a
6174  cgroup_put(cgrp)
6175  返回:错误号
6178  返回:cgrp
调用者
名称描述
cgroup_fd_array_get_ptr
cgroup_bpf_prog_attach
cgroup_bpf_prog_detach
cgroup_bpf_prog_query