Function report |
Source Code:arch\x86\kernel\cpu\resctrl\rdtgroup.c |
Create Date:2022-07-28 08:10:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:rdtgroup_cpus_write
Proto:static ssize_t rdtgroup_cpus_write(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct kernfs_open_file * | of | |
char * | buf | |
size_t | nbytes | |
loff_t | off |
451 | If Not zalloc_cpumask_var( & tmpmask, GFP_KERNEL) Then Return -ENOMEM |
453 | If Not zalloc_cpumask_var( & newmask, GFP_KERNEL) Then |
454 | free_cpumask_var(tmpmask) |
455 | Return -ENOMEM |
457 | If Not zalloc_cpumask_var( & tmpmask1, GFP_KERNEL) Then |
463 | rdtgrp = rdtgroup_kn_lock_live( published fields ) |
464 | If Not rdtgrp Then |
469 | If mode == RDT_MODE_PSEUDO_LOCKED || mode == RDT_MODE_PSEUDO_LOCKSETUP Then |
476 | If is_cpu_list(of) Then ret = pulist_parse - extract a cpumask from a user string of ranges*@buf: the buffer to extract from*@dstp: the cpumask to set.* Returns -errno, or 0 for success. |
478 | Else ret = pumask_parse - extract a cpumask from a string*@buf: the buffer to extract from*@dstp: the cpumask to set.* Returns -errno, or 0 for success. |
481 | If ret Then |
482 | rdt_last_cmd_puts("Bad CPU list/mask\n") |
483 | Go to unlock |
494 | If type == RDTCTRL_GROUP Then ret = cpus_ctrl_write(rdtgrp, newmask, tmpmask, tmpmask1) |
496 | Else if type == RDTMON_GROUP Then ret = cpus_mon_write(rdtgrp, newmask, tmpmask) |
501 | unlock : |
503 | free_cpumask_var(tmpmask) |
504 | free_cpumask_var(newmask) |
505 | free_cpumask_var(tmpmask1) |
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 |