| Function report | 
| 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 activity | Download SCCT | Chinese | 
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:
| Type | Parameter | Name | 
|---|---|---|
| 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 | 
| 699 | rdt_last_cmd_puts("Pseudo-locking not supported\n") | 
| 700 | Return -EINVAL | 
| 704 | rdt_last_cmd_puts("Monitoring in progress\n") | 
| 705 | Return -EINVAL | 
| 709 | rdt_last_cmd_puts("Tasks assigned to resource group\n") | 
| 710 | Return -EINVAL | 
| 714 | rdt_last_cmd_puts("CPUs assigned to resource group\n") | 
| 715 | Return -EINVAL | 
| 719 | rdt_last_cmd_puts("Unable to modify resctrl permissions\n") | 
| 720 | Return -EIO | 
| 724 | If ret Then | 
| 725 | rdt_last_cmd_puts("Unable to init pseudo-lock region\n") | 
| 726 | Go to out_release | 
| 737 | ret = 0 | 
| 738 | Go to out | 
| 740 | out_release : | 
| 742 | out : | 
| 743 | Return ret | 
| Name | Describe | 
|---|---|
| rdtgroup_mode_write | dtgroup_mode_write - Modify the resource group's mode | 
| 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 |