Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sysctl.c Create Date:2022-07-28 09:11:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:proc_do_cad_pid

Proto:static int proc_do_cad_pid(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos)

Type:int

Parameter:

TypeParameterName
struct ctl_table *table
intwrite
void __user *buffer
size_t *lenp
loff_t *ppos
3134  tmp = pid_vnr(cad_pid)
3136  r = __do_proc_dointvec( & tmp, table, write, buffer, lenp, ppos, NULL, NULL)
3138  If r || Not write Then Return r
3141  new_pid = Lookup a PID in the hash table, and return with it's count elevated.
3142  If Not new_pid Then Return -ESRCH
3145  put_pid(xchg( & cad_pid, new_pid))
3146  Return 0