函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:set_permissions

函数原型:static int set_permissions(struct ctl_table_header *head, struct ctl_table *table)

返回类型:int

参数:

类型参数名称
struct ctl_table_header *head
struct ctl_table *table
37  user_ns等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(set, structuser_namespace, set)
42  如果ns_capable(user_ns, Override max number of keymaps )则mode等于mode按位与S_IRWXU的值右移6位
44  否则mode等于mode按位与S_IROTH
47  返回:mode左移6位按位或mode左移3位按位或mode