函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:proc_do_cad_pid

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

返回类型:int

参数:

类型参数名称
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  如果r或非write则返回:r
3141  new_pid等于Lookup a PID in the hash table, and return with it's count elevated.
3142  如果非new_pid则返回:负ESRCH
3145  put_pid(xchg( & cad_pid, new_pid))
3146  返回:0