Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:param_set_copystring

Proto:int param_set_copystring(const char *val, const struct kernel_param *kp)

Type:int

Parameter:

TypeParameterName
const char *val
const struct kernel_param *kp
493  kps = str
495  If strlen - Find the length of a string*@s: The string to be sized + 1 > maxlen Then
496  pr_err("%s: string doesn't fit in %u chars.\n", name, maxlen - 1)
498  Return -ENOSPC
500  strcpy(string, val)
501  Return 0