Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:reset_store

Proto:static ssize_t reset_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)

Type:ssize_t

Parameter:

TypeParameterName
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  If ret < 0 Then
857  ret = -ENOMEM
858  dev_err(dev, "could not alloc settings for config trigger: %d\n", ret)
860  Go to out
863  dev_info(dev, "reset\n")
864  ret = count
866  out :
867  mutex_unlock( & config_mutex)
868  mutex_unlock( & trigger_mutex)
870  Return ret