Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:param_set_charp

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

Type:int

Parameter:

TypeParameterName
const char *val
const struct kernel_param *kp
247  If strlen - Find the length of a string*@s: The string to be sized > 1024 Then
248  pr_err("%s: string parameter too long\n", name)
249  Return -ENOSPC
252  Does nothing if parameter wasn't kmalloced above.
256  If slab_is_available() Then
257  arg = kmalloc_parameter(strlen - Find the length of a string*@s: The string to be sized + 1)
258  If Not arg Then Return -ENOMEM
260  strcpy( * (char * * )arg, val)
261  Else arg = val
264  Return 0
Caller
NameDescribe
__zswap_param_setval must be a null-terminated string