函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmstat.c Create Date:2022-07-27 15:47:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:sysctl_vm_numa_stat_handler

函数原型:int sysctl_vm_numa_stat_handler(struct ctl_table *table, int write, void __user *buffer, size_t *length, loff_t *ppos)

返回类型:int

参数:

类型参数名称
struct ctl_table *table
intwrite
void __user *buffer
size_t *length
loff_t *ppos
83  mutex_lock( & vm_numa_stat_lock)
84  如果writeoldval等于sysctl_vm_numa_stat
86  ret等于指定大小读sysctl整数向量
87  如果ret或非write则转到:out
90  如果oldval恒等于sysctl_vm_numa_stat则转到:out
92  否则如果sysctl_vm_numa_stat恒等于ENABLE_NUMA_STAT
93  Normal usage; boolean enable/disable.( & vm_numa_stat_key)
94  打印信息("enable numa statistics\n")
95  否则
96  static_branch_disable( & vm_numa_stat_key)
97  invalid_numa_statistics()
98  打印信息("disable numa statistics, and clear numa counters\n")
101  out :
102  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
103  返回:ret