Function report |
Source Code:kernel\cgroup\cpuset.c |
Create Date:2022-07-28 11:17:11 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sched_partition_write
Proto:static ssize_t sched_partition_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 |
| 2510 | If Not strcmp(buf, "root") Then val = PRS_ENABLED |
| 2514 | Else Return -EINVAL |
| 2518 | get_online_cpus() |
| 2519 | percpu_down_write( & cpuset_rwsem) |
| 2520 | If Not venient tests for these bits Then Go to out_unlock |
| 2524 | out_unlock : |
| 2525 | percpu_up_write( & cpuset_rwsem) |
| 2526 | put_online_cpus() |
| 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 |