函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dtgroup_locksetup_enter - Resource group enters locksetup mode*@rdtgrp: resource group requested to enter locksetup mode* A resource group enters locksetup mode to reflect that it would be used* to represent a pseudo-locked region and is in the process of

函数原型:int rdtgroup_locksetup_enter(struct rdtgroup *rdtgrp)

返回类型:int

参数:

类型参数名称
struct rdtgroup *rdtgrp
656  如果rdtgrp恒等于rdtgroup_default
657  rdt_last_cmd_puts("Cannot pseudo-lock default group\n")
658  返回:负EINVAL
687  如果alloc_enabledalloc_enabled
689  rdt_last_cmd_puts("CDP enabled\n")
690  返回:负EINVAL
697  The bits needed to disable hardware prefetching varies based on the* platform. During initialization we will discover which bits to use.等于get_prefetch_disable_bits - prefetch disable bits of supported platforms* Capture the list of platforms that have been validated to support* pseudo-locking
698  如果The bits needed to disable hardware prefetching varies based on the* platform. During initialization we will discover which bits to use.恒等于0则
699  rdt_last_cmd_puts("Pseudo-locking not supported\n")
700  返回:负EINVAL
703  如果dtgroup_monitor_in_progress - Test if monitoring in progress*@r: resource group being queried* Return: 1 if monitor groups have been created for this resource* group, 0 otherwise.
704  rdt_last_cmd_puts("Monitoring in progress\n")
705  返回:负EINVAL
708  如果dtgroup_tasks_assigned - Test if tasks have been assigned to resource group*@r: Resource group* Return: 1 if tasks have been assigned to @r, 0 otherwise
709  rdt_last_cmd_puts("Tasks assigned to resource group\n")
710  返回:负EINVAL
713  如果非pumask_empty - *srcp == 0*@srcp: the cpumask to that all cpus < nr_cpu_ids are clear.
714  rdt_last_cmd_puts("CPUs assigned to resource group\n")
715  返回:负EINVAL
718  如果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
719  rdt_last_cmd_puts("Unable to modify resctrl permissions\n")
720  返回:负EIO
723  ret等于pseudo_lock_init - Initialize a pseudo-lock region*@rdtgrp: resource group to which new pseudo-locked region will belong* A pseudo-locked region is associated with a resource group. When this* association is created the pseudo-locked region is initialized
724  如果ret
725  rdt_last_cmd_puts("Unable to init pseudo-lock region\n")
726  转到:out_release
735  free_rmid(rmid)
737  ret等于0
738  转到:out
740  out_release :
741  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
742  out :
743  返回:ret
调用者
名称描述
rdtgroup_mode_writedtgroup_mode_write - Modify the resource group's mode