Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:test_dev_config_update_int

Proto:static int test_dev_config_update_int(struct kmod_test_device *test_dev, const char *buf, size_t size, int *config)

Type:int

Parameter:

TypeParameterName
struct kmod_test_device *test_dev
const char *buf
size_tsize
int *config
942  ret = kstrtol - convert a string to a long*@s: The start of the string. The string must be null-terminated, and may also* include a single newline before its terminating null. The first character* may also be a plus sign or a minus sign.
943  If ret Then Return ret
946  If new < INT_MIN || new > INT_MAX Then Return -EINVAL
949  mutex_lock( & config_mutex)
950  config = new
951  mutex_unlock( & config_mutex)
953  Return size
Caller
NameDescribe
test_result_store