Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:read_firmware_show

Proto:static ssize_t read_firmware_show(struct device *dev, struct device_attribute *attr, char *buf)

Type:ssize_t

Parameter:

TypeParameterName
struct device *dev
struct device_attribute *attr
char *buf
850  rc = 0
852  mutex_lock( & test_fw_mutex)
854  idx = read_fw_idx
855  If idx >= num_requests Then
856  rc = -ERANGE
857  Go to out
860  If Not These below don't belong her but we'll move them once we create* a struct fw_test_device and stuff the misc_dev under there later. Then
861  rc = -EINVAL
862  Go to out
865  req = These below don't belong her but we'll move them once we create* a struct fw_test_device and stuff the misc_dev under there later.[idx]
866  If Not fw Then
867  pr_err("#%u: failed to async load firmware\n", idx)
868  rc = -ENOENT
869  Go to out
872  pr_info("#%u: loaded %zu\n", idx, size)
874  If size > PAGE_SIZE Then
875  pr_err("Testing interface must use PAGE_SIZE firmware for now\n")
876  rc = -EINVAL
877  Go to out
879  No 3D Now!(buf, data, size)
881  rc = size
882  out :
883  mutex_unlock( & test_fw_mutex)
885  Return rc