Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_firmware.c Create Date:2022-07-28 06:28:21
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_u8

Proto:static int test_dev_config_update_u8(const char *buf, size_t size, u8 *cfg)

Type:int

Parameter:

TypeParameterName
const char *buf
size_tsize
u8 *cfg
341  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.
342  If ret Then Return ret
345  If new > U8_MAX Then Return -EINVAL
348  mutex_lock( & test_fw_mutex)
349  cfg = new
350  mutex_unlock( & test_fw_mutex)
353  Return size
Caller
NameDescribe
config_num_requests_store
config_read_fw_idx_store