Function report |
Source Code:kernel\cgroup\cgroup.c |
Create Date:2022-07-28 11:11:33 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:struct cgroup_subsys_state *css_tryget_online_from_dir(struct dentry *dentry, struct cgroup_subsys *ss)
Type:struct cgroup_subsys_state
Parameter:
Type | Parameter | Name |
---|---|---|
struct dentry * | dentry | |
struct cgroup_subsys * | ss |
6072 | kn = kernfs_node_from_dentry(dentry) |
6074 | struct cgroup_subsys_state * css = NULL |
6078 | If s_type != cgroup_fs_type && s_type != cgroup2_fs_type || Not kn || kernfs_type(kn) != KERNFS_DIR Then Return ERR_PTR( - EBADF) |
6089 | cgrp = fetch RCU-protected pointer for dereferencing( * (void__rcu__force * * ) & priv) |
6093 | If Not css || Not ss_tryget_online - try to obtain a reference on the specified css if online*@css: target css* Obtain a reference on @css if it's online Then css = ERR_PTR( - ENOENT) |
6097 | Return css |
Name | Describe |
---|---|
cgroup_get_from_fd | 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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |