函数逻辑报告 |
Source Code:lib\test_firmware.c |
Create Date:2022-07-27 07:25:53 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:We use a kthread as otherwise the kernel serializes all our sync requests* and we would not be able to mimic batched requests on a sync call. Batched* requests on a sync call can for instance happen on a device driver when
函数原型:static ssize_t trigger_batched_requests_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_t | count |
| 665 | mutex_lock( & test_fw_mutex) |
| 672 | 转到:out_unlock |
| 675 | 打印信息("batched sync firmware loading '%s' %u times\n", name, num_requests) |
| 678 | 以i小于num_requests循环 |
| 679 | 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] |
| 680 | fw = NULL |
| 684 | init_completion( & completion) |
| 705 | out_bail : |
| 706 | 以i小于num_requests循环 |
| 707 | 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] |
| 708 | 如果task或sent则wait_for_completion( & completion) |
| 713 | 如果rc小于0则test_result等于rc |
| 716 | out_unlock : |
| 717 | mutex_unlock( & test_fw_mutex) |
| 719 | 返回:rc |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |