Function report |
Source Code:arch\x86\kernel\cpu\resctrl\rdtgroup.c |
Create Date:2022-07-28 08:11:28 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:int rdtgroup_kn_mode_restrict(struct rdtgroup *r, const char *name)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
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 | Case kernfs_type(kn) == KERNFS_DIR |
1543 | Case kernfs_type(kn) == KERNFS_FILE |
1546 | Case kernfs_type(kn) == KERNFS_LINK |
1551 | ret = kernfs_setattr(kn, & iattr) |
1552 | kernfs_put(kn) |
1553 | Return ret |
Name | Describe |
---|---|
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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |