函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\resctrl\rdtgroup.c Create Date:2022-07-27 09:11:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:dtgroup_kn_mode_restore - Restore user access to named resctrl file*@r: The resource group with which the file is associated.*@name: Name of the file*@mask: Mask of permissions that should be restored* Restore the permissions of the named file

函数原型:int rdtgroup_kn_mode_restore(struct rdtgroup *r, const char *name, umode_t mask)

返回类型:int

参数:

类型参数名称
struct rdtgroup *r
const char *name
umode_tmask
1570  struct iattr iattr = {ia_valid = Attribute flags. These should be or-ed together to figure out what* has been changed!, }
1575  rfts等于dtgroup information files for one cache resource.
1576  len等于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(dtgroup information files for one cache resource. )
1578 rft小于rftslen循环
1579  如果非字符串比较ia_mode等于mode按位与mask
1583  kn等于kernfs_find_and_get_ns(kn, name, NULL)
1584  如果非kn则返回:负ENOENT
1588  :kernfs_type(kn)恒等于KERNFS_DIR
1589  parent等于kernfs_get_parent(kn)
1590  如果parent
1591  ia_mode或等于mode
1592  kernfs_put(parent)
1594  ia_mode或等于S_IFDIR
1595  退出
1596  :kernfs_type(kn)恒等于KERNFS_FILE
1597  ia_mode或等于S_IFREG
1598  退出
1599  :kernfs_type(kn)恒等于KERNFS_LINK
1600  ia_mode或等于S_IFLNK
1601  退出
1604  ret等于kernfs_setattr(kn, & iattr)
1605  kernfs_put(kn)
1606  返回:ret
调用者
名称描述
rdtgroup_locksetup_user_restrictdtgroup_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_restoredtgroup_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
rdtgroup_pseudo_lock_createdtgroup_pseudo_lock_create - Create a pseudo-locked region*@rdtgrp: resource group to which pseudo-lock region belongs* Called when a resource group in the pseudo-locksetup mode receives a* valid schemata that should be pseudo-locked