1REQUEST_FIRMWARE_NOW(9) Device drivers infrastructure REQUEST_FIRMWARE_NOW(9)
2
3
4
6 request_firmware_nowait - asynchronous version of request_firmware
7
9 int request_firmware_nowait(struct module * module, bool uevent,
10 const char * name, struct device * device,
11 gfp_t gfp, void * context,
12 void (*cont) (const struct firmware *fw, void *context));
13
15 module
16 module requesting the firmware
17
18 uevent
19 sends uevent to copy the firmware image if this flag is non-zero
20 else the firmware copy must be done manually.
21
22 name
23 name of firmware file
24
25 device
26 device for which firmware is being loaded
27
28 gfp
29 allocation flags
30
31 context
32 will be passed over to cont, and fw may be NULL if firmware request
33 fails.
34
35 cont
36 function will be called asynchronously when the firmware request is
37 over.
38
40 Caller must hold the reference count of device.
41
42 Asynchronous variant of request_firmware for user contexts: - sleep for
43 as small periods as possible since it may increase kernel boot time of
44 built-in device drivers requesting firmware in their ->probe methods,
45 if gfp is GFP_KERNEL.
46
47 - can't sleep at all if gfp is GFP_ATOMIC.
48
50Kernel Hackers Manual 3.10 June 2019 REQUEST_FIRMWARE_NOW(9)