函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:param_set_charp

函数原型:int param_set_charp(const char *val, const struct kernel_param *kp)

返回类型:int

参数:

类型参数名称
const char *val
const struct kernel_param *kp
247  如果strlen - Find the length of a string*@s: The string to be sized大于1024则
248  打印错误信息("%s: string parameter too long\n", name)
249  返回:负ENOSPC
252  Does nothing if parameter wasn't kmalloced above.
256  如果slab_is_available()则
257  arg等于kmalloc_parameter(strlen - Find the length of a string*@s: The string to be sized + 1)
258  如果非arg则返回:负ENOMEM
260  strcpy( * (char * * )arg, val)
261  否则arg等于val
264  返回:0
调用者
名称描述
__zswap_param_setval must be a null-terminated string