函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:test_dev_config_update_uint_sync

函数原型:static int test_dev_config_update_uint_sync(struct kmod_test_device *test_dev, const char *buf, size_t size, unsigned int *config, int (*test_sync)(struct kmod_test_device *test_dev))

返回类型:int

参数:

类型参数名称
struct kmod_test_device *test_dev
const char *buf
size_tsize
unsigned int *config
int (*test_sync
883  ret等于kstrtoul - convert a string to an unsigned 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, but not a minus sign.
884  如果ret则返回:ret
887  如果new大于UINT_MAX则返回:负EINVAL
890  mutex_lock( & config_mutex)
892  old_val等于config
893  config等于new
895  ret等于test_sync(test_dev)
896  如果ret
897  config等于old_val
899  ret等于test_sync(test_dev)
900  WARN_ON(ret)
902  mutex_unlock( & config_mutex)
903  返回:负EINVAL
906  mutex_unlock( & config_mutex)
908  返回:size
调用者
名称描述
config_num_threads_store