函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:proc_put_long - converts an integer to a decimal ASCII formatted string*@buf: the user buffer*@size: the size of the user buffer*@val: the integer to be converted*@neg: sign of the number, %TRUE for negative* In case of success %0 is returned and @buf and

函数原型:static int proc_put_long(void __user **buf, size_t *size, unsigned long val, bool neg)

返回类型:int

参数:

类型参数名称
void __user **buf
size_t *size
unsigned longval
boolneg
2263  p等于tmp
2265  输出格式化串
2266  len等于strlen - Find the length of a string*@s: The string to be sized
2267  如果len大于sizelen等于size
2269  如果copy_to_user( * buf, tmp, len)则返回:负EFAULT
2271  size减等于len
2272  buf加等于len
2273  返回:0
调用者
名称描述
__do_proc_dointvec
do_proc_douintvec_r
__do_proc_doulongvec_minmax
proc_do_large_bitmapproc_do_large_bitmap - read/write from/to a large bitmap*@table: the sysctl table*@write: %TRUE if this is a write to the sysctl file*@buffer: the user buffer*@lenp: the size of the user buffer*@ppos: file position* The bitmap is stored at table->data and