Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\resctrl\pseudo_lock.c Create Date:2022-07-28 08:13:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:int rdtgroup_locksetup_enter(struct rdtgroup *rdtgrp)

Type:int

Parameter:

TypeParameterName
struct rdtgroup *rdtgrp
656  If rdtgrp == rdtgroup_default Then
657  rdt_last_cmd_puts("Cannot pseudo-lock default group\n")
658  Return -EINVAL
687  If alloc_enabled || alloc_enabled Then
689  rdt_last_cmd_puts("CDP enabled\n")
690  Return -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  If The bits needed to disable hardware prefetching varies based on the* platform. During initialization we will discover which bits to use. == 0 Then
699  rdt_last_cmd_puts("Pseudo-locking not supported\n")
700  Return -EINVAL
703  If 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. Then
704  rdt_last_cmd_puts("Monitoring in progress\n")
705  Return -EINVAL
708  If 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 Then
709  rdt_last_cmd_puts("Tasks assigned to resource group\n")
710  Return -EINVAL
713  If Not pumask_empty - *srcp == 0*@srcp: the cpumask to that all cpus < nr_cpu_ids are clear. Then
714  rdt_last_cmd_puts("CPUs assigned to resource group\n")
715  Return -EINVAL
718  If 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 Then
719  rdt_last_cmd_puts("Unable to modify resctrl permissions\n")
720  Return -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  If ret Then
725  rdt_last_cmd_puts("Unable to init pseudo-lock region\n")
726  Go to out_release
735  free_rmid(rmid)
737  ret = 0
738  Go to 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  Return ret
Caller
NameDescribe
rdtgroup_mode_writedtgroup_mode_write - Modify the resource group's mode