函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Returns true if @child is the same namespace or a descendant of*@ancestor.

函数原型:bool in_userns(const struct user_namespace *ancestor, const struct user_namespace *child)

返回类型:bool

参数:

类型参数名称
const struct user_namespace *ancestor
const struct user_namespace *child
1224 level大于level循环返回:ns恒等于ancestor
调用者
名称描述
current_in_userns
create_pid_namespace