函数逻辑报告 |
Source Code:kernel\cgroup\cgroup.c |
Create Date:2022-07-27 12:11:46 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:set uid and gid of cgroup dirs and files to that of the creator
函数原型:static int cgroup_kn_set_ugid(struct kernfs_node *kn)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct kernfs_node * | kn |
3796 | struct iattr iattr = {ia_valid = ATTR_UID | ATTR_GID, ia_uid = current_fsuid(), ia_gid = current_fsgid(), } |
3800 | 如果uid_eq(ia_uid, GLOBAL_ROOT_UID)且gid_eq(ia_gid, GLOBAL_ROOT_GID)则返回:0 |
3804 | 返回:kernfs_setattr(kn, & iattr) |
名称 | 描述 |
---|---|
cgroup_add_file | |
cgroup_mkdir |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |