Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
struct ctl_table *table
intwrite
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
86  ret = read a vector of integers with min/max values
87  If ret || Not write Then Go to out
90  If oldval == sysctl_vm_numa_stat Then Go to out
92  Else if sysctl_vm_numa_stat == ENABLE_NUMA_STAT Then
93  Normal usage; boolean enable/disable.( & vm_numa_stat_key)
94  pr_info("enable numa statistics\n")
95  Else
96  static_branch_disable( & vm_numa_stat_key)
97  invalid_numa_statistics()
98  pr_info("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  Return ret