Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:trigger_request_store

Proto:static ssize_t trigger_request_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
484  name = kstrndup(buf, count, GFP_KERNEL)
485  If Not name Then Return -ENOSPC
488  pr_info("loading '%s'\n", name)
490  mutex_lock( & test_fw_mutex)
491  release_firmware(test_firmware)
492  test_firmware = NULL
493  rc = request_firmware( & test_firmware, name, dev)
494  If rc Then
495  pr_info("load of '%s' failed: %d\n", name, rc)
496  Go to out
498  pr_info("loaded: %zu\n", size)
499  rc = count
501  out :
502  mutex_unlock( & test_fw_mutex)
504  kfree(name)
506  Return rc