Function report |
Source Code:lib\test_firmware.c |
Create Date:2022-07-28 06:28:32 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:static ssize_t trigger_batched_requests_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)
Type:ssize_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct device * | dev | |
| struct device_attribute * | attr | |
| const char * | buf | |
| size_t | count |
| 665 | mutex_lock( & test_fw_mutex) |
| 672 | Go to out_unlock |
| 675 | pr_info("batched sync firmware loading '%s' %u times\n", name, num_requests) |
| 678 | When i < num_requests cycle |
| 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 | When i < num_requests cycle |
| 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 | If task || sent Then wait_for_completion( & completion) |
| 713 | If rc < 0 Then test_result = rc |
| 716 | out_unlock : |
| 717 | mutex_unlock( & test_fw_mutex) |
| 719 | Return rc |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |