函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:group_get_from_path - lookup and get a cgroup from its default hierarchy path*@path: path on the default hierarchy* Find the cgroup at @path on the default hierarchy, increment its* reference count and return it

函数原型:struct cgroup *cgroup_get_from_path(const char *path)

返回类型:struct cgroup

参数:

类型参数名称
const char *path
6128  mutex_lock( & cgroup_mutex is the master lock)
6130  kn等于kernfs_walk_and_get( cgroup kernfs entry , path)
6131  如果kn
6132  如果kernfs_type(kn)恒等于KERNFS_DIR
6133  cgrp等于priv
6135  否则
6136  cgrp等于错误号
6138  kernfs_put(kn)
6139  否则
6140  cgrp等于错误号
6143  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
6144  返回:cgrp