函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:trigger_batched_requests_async_store

函数原型:static ssize_t trigger_batched_requests_async_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
763  mutex_lock( & test_fw_mutex)
765  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.等于vzalloc(array3_size() - Calculate size of 3-dimensional array.*@a: dimension one*@b: dimension two*@c: dimension three* Calculates size of 3-dimensional array: @a *@b *@c.* Returns: number of bytes needed to represent the array or SIZE_MAX on* overflow.)
768  如果非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.
769  rc等于负ENOMEM
770  转到:out
773  打印信息("batched loading '%s' custom fallback mechanism %u times\n", name, num_requests)
776  send_uevent等于如果send_ueventFW_ACTION_HOTPLUG否则FW_ACTION_NOHOTPLUG
779 i小于num_requests循环
780  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.[i]
781  name等于name
782  fw = NULL
783  idx等于i
784  init_completion( & completion)
785  rc等于request_firmware_nowait(THIS_MODULE, send_uevent, name, dev, GFP_KERNEL, req, We wait for each callback to return with the lock held, no need to lock here)
789  如果rc
790  打印信息("#%u: batched async load failed setup: %d\n", i, rc)
792  rc等于rc
793  转到:out_bail
794  否则sent = true
798  rc等于count
800  out_bail :
810 i小于num_requests循环
811  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.[i]
812  如果sentwait_for_completion( & completion)
817  如果rc小于0则test_result等于rc
820  out :
821  mutex_unlock( & test_fw_mutex)
823  返回:rc