函数逻辑报告

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:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:rdtgroup_kn_unlock

函数原型:void rdtgroup_kn_unlock(struct kernfs_node *kn)

返回类型:void

参数:

类型参数名称
struct kernfs_node *kn
1904  rdtgrp等于We don't allow rdtgroup directories to be created anywhere* except the root directory
1906  如果非rdtgrp则返回
1909  mutex_unlock( & Mutex to protect rdtgroup access. )
1911  如果atomic_dec_and_test( & waitcount)且flags按位与dtgroup.flags
1913  如果mode恒等于RDT_MODE_PSEUDO_LOCKSETUPmode恒等于RDT_MODE_PSEUDO_LOCKEDdtgroup_pseudo_lock_remove - Remove a pseudo-locked region*@rdtgrp: resource group to which the pseudo-locked region belongs* The removal of a pseudo-locked region can be initiated when the resource* group is removed from user space via a "rmdir" from
1916  kernfs_unbreak_active_protection(kn)
1917  kernfs_put(kn)
1918  释放内存
1919  否则
1920  kernfs_unbreak_active_protection(kn)
调用者
名称描述
rdtgroup_cpus_show
rdtgroup_cpus_write
rdtgroup_tasks_write
rdtgroup_tasks_show
rdtgroup_mode_showdtgroup_mode_show - Display mode of this resource group
rdtgroup_mode_writedtgroup_mode_write - Modify the resource group's mode
rdtgroup_size_showdtgroup_size_show - Display size in bytes of allocated regions* The "size" file mirrors the layout of the "schemata" file, printing the* size in bytes of each region instead of the capacity bitmask.
mkdir_rdt_prepare
rdtgroup_mkdir_monCreate a monitor group under "mon_groups" directory of a control* and monitor group(ctrl_mon). This is a resource group* to monitor a subset of tasks and cpus in its parent ctrl_mon group.
rdtgroup_mkdir_ctrl_monThese are rdtgroups created under the root directory. Can be used* to allocate and monitor resources.
rdtgroup_rmdir
rdtgroup_schemata_write
rdtgroup_schemata_show
rdtgroup_mondata_show