函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:trigger_request_store

函数原型:static ssize_t trigger_request_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
484  name等于kstrndup(buf, count, GFP_KERNEL)
485  如果非name则返回:负ENOSPC
488  打印信息("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  如果rc
495  打印信息("load of '%s' failed: %d\n", name, rc)
496  转到:out
498  打印信息("loaded: %zu\n", size)
499  rc等于count
501  out :
502  mutex_unlock( & test_fw_mutex)
504  kfree(name)
506  返回:rc