函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cgroup1_get_tree

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

返回类型:int

参数:

类型参数名称
struct fs_context *fc
1204  ctx等于cgroup_fc2context(fc)
1208  如果非ns_capable(user_ns, Allow setting zone reclaim policy )则返回:负EPERM
1211  group_lock_and_drain_offline - lock cgroup_mutex and drain offlined csses*@cgrp: root of the target subtree* Because css offlining is asynchronous, userland may try to re-enable a* controller while the previous css is still around. This function grabs
1213  ret等于The guts of cgroup1 mount - find or create cgroup_root to use
1214  如果非ret且非percpu_ref_tryget_live - try to increment a live percpu refcount*@ref: percpu_ref to try-get* Increment a percpu refcount unless it has already been killedret等于1
1217  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.
1219  如果非retret等于cgroup_do_get_tree(fc)
1222  如果非retpercpu_ref_is_dying - test whether a percpu refcount is dying or dead*@ref: percpu_ref to test* Returns %true if @ref is dying or dead.* This function is safe to call as long as @ref is between init and exit
1223  sb等于d_sb
1224  dput(root)
1225  deactivate_locked_super - drop an active reference to superblock*@s: superblock to deactivate* Drops an active reference to superblock, converting it into a temporary* one if there is no other active references left
1226  ret等于1
1229  如果此条件成立可能性小(为编译器优化)(ret > 0)则
1230  msleep - sleep safely even with waitqueue interruptions*@msecs: Time in milliseconds to sleep for
1231  返回:restart_syscall()
1233  返回:ret