request_firmware_nowait — asynchronous version of request_firmware
int request_firmware_nowait ( | struct module * module, |
| bool uevent, | |
| const char * name, | |
| struct device * device, | |
| gfp_t gfp, | |
| void * context, | |
void (*cont)
(const struct firmware *fw, void *context)); |
modulemodule requesting the firmware
ueventsends uevent to copy the firmware image if this flag is non-zero else the firmware copy must be done manually.
namename of firmware file
devicedevice for which firmware is being loaded
gfpallocation flags
context
will be passed over to cont, and
fw may be NULL if firmware request fails.
contfunction will be called asynchronously when the firmware request is over.
Caller must hold the reference count of device.
Asynchronous variant of request_firmware for user contexts:
- sleep for as small periods as possible since it may
increase kernel boot time of built-in device drivers
requesting firmware in their ->probe methods, if
gfp is GFP_KERNEL.
- can't sleep at all if gfp is GFP_ATOMIC.