函数逻辑报告

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

函数名称:reset_store

函数原型:static ssize_t reset_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)

返回类型:ssize_t

参数:

类型参数名称
struct device *dev
struct device_attribute *attr
const char *buf
size_tcount
849  test_dev等于dev_to_test_dev(dev)
852  mutex_lock( & trigger_mutex)
853  mutex_lock( & config_mutex)
855  ret等于__kmod_config_init(test_dev)
856  如果ret小于0则
857  ret等于负ENOMEM
858  dev_err(dev, "could not alloc settings for config trigger: %d\n", ret)
860  转到:out
863  dev_info(dev, "reset\n")
864  ret等于count
866  out :
867  mutex_unlock( & config_mutex)
868  mutex_unlock( & trigger_mutex)
870  返回:ret