Function report |
Source Code:lib\test_firmware.c |
Create Date:2022-07-28 06:28:33 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:trigger_batched_requests_async_store
Proto:static ssize_t trigger_batched_requests_async_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 |
| 763 | mutex_lock( & test_fw_mutex) |
| 773 | pr_info("batched loading '%s' custom fallback mechanism %u times\n", name, num_requests) |
| 776 | send_uevent = If send_uevent Then FW_ACTION_HOTPLUG Else FW_ACTION_NOHOTPLUG |
| 779 | When i < num_requests cycle |
| 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] |
| 782 | fw = NULL |
| 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 | If rc Then |
| 794 | Else sent = true |
| 800 | out_bail : |
| 810 | When i < num_requests cycle |
| 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 | If sent Then wait_for_completion( & completion) |
| 817 | If rc < 0 Then test_result = rc |
| 820 | out : |
| 821 | mutex_unlock( & test_fw_mutex) |
| 823 | 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 |