Function report |
Source Code:mm\vmstat.c |
Create Date:2022-07-28 14:22:54 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sysctl_vm_numa_stat_handler
Proto:int sysctl_vm_numa_stat_handler(struct ctl_table *table, int write, void __user *buffer, size_t *length, loff_t *ppos)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct ctl_table * | table | |
| int | write | |
| void __user * | buffer | |
| size_t * | length | |
| loff_t * | ppos |
| 83 | mutex_lock( & vm_numa_stat_lock) |
| 84 | If write Then oldval = sysctl_vm_numa_stat |
| 90 | If oldval == sysctl_vm_numa_stat Then Go to out |
| 92 | Else if sysctl_vm_numa_stat == ENABLE_NUMA_STAT Then |
| 94 | pr_info("enable numa statistics\n") |
| 95 | Else |
| 98 | pr_info("disable numa statistics, and clear numa counters\n") |
| 101 | out : |
| 103 | Return ret |
| 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 |