Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static int proc_put_long(void __user **buf, size_t *size, unsigned long val, bool neg)

Type:int

Parameter:

TypeParameterName
void __user **buf
size_t *size
unsigned longval
boolneg
2263  p = tmp
2265  sprintf(p, "%s%lu", neg ? "-" : "", val)
2266  len = strlen - Find the length of a string*@s: The string to be sized
2267  If len > size Then len = size
2269  If copy_to_user( * buf, tmp, len) Then Return -EFAULT
2271  size -= len
2272  buf += len
2273  Return 0
Caller
NameDescribe
__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