函数逻辑报告 |
Source Code:arch\x86\kernel\cpu\resctrl\rdtgroup.c |
Create Date:2022-07-27 09:11:29 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:dtgroup_kn_mode_restrict - Restrict user access to named resctrl file*@r: The resource group with which the file is associated.*@name: Name of the file* The permissions of named resctrl file, directory, or link are modified
函数原型:int rdtgroup_kn_mode_restrict(struct rdtgroup *r, const char *name)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct rdtgroup * | r | |
const char * | name |
1531 | struct iattr iattr = {ia_valid = Attribute flags. These should be or-ed together to figure out what* has been changed!, } |
1533 | ret等于0 |
1535 | kn等于kernfs_find_and_get_ns(kn, name, NULL) |
1540 | 当:kernfs_type(kn)恒等于KERNFS_DIR |
1543 | 当:kernfs_type(kn)恒等于KERNFS_FILE |
1546 | 当:kernfs_type(kn)恒等于KERNFS_LINK |
1551 | ret等于kernfs_setattr(kn, & iattr) |
1552 | kernfs_put(kn) |
1553 | 返回:ret |
名称 | 描述 |
---|---|
rdtgroup_locksetup_user_restrict | dtgroup_locksetup_user_restrict - Restrict user access to group*@rdtgrp: resource group needing access restricted* A resource group used for cache pseudo-locking cannot have cpus or tasks* assigned to it |
rdtgroup_locksetup_user_restore | dtgroup_locksetup_user_restore - Restore user access to group*@rdtgrp: resource group needing access restored* Restore all file access previously removed using* rdtgroup_locksetup_user_restrict()* Return: 0 on success, <0 on failure |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |