Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kprobes.c Create Date:2022-07-28 11:35:20
Last Modify:2022-05-22 18:14:58 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:proc_kprobes_optimization_handler

Proto:int proc_kprobes_optimization_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
900  mutex_lock( & kprobe_sysctl_mutex)
901  sysctl_kprobes_optimization = If NOTE: change this value only with kprobe_mutex held Then 1 Else 0
902  ret = read a vector of integers with min/max values
904  If sysctl_kprobes_optimization Then optimize_all_kprobes()
906  Else unoptimize_all_kprobes()
908  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.
910  Return ret