提交 7fcab099 编写于 作者: M Ming Lei 提交者: Greg Kroah-Hartman

driver core: fix documentation of request_firmware_nowait

request_firmware_nowait declares it can be called in non-sleep contexts,
but kthead_run called by request_firmware_nowait may sleep. So fix its
documentation and comment to make callers clear about it.
Signed-off-by: NMing Lei <tom.leiming@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 c4c01684
...@@ -77,7 +77,8 @@ ...@@ -77,7 +77,8 @@
seconds for the whole load operation. seconds for the whole load operation.
- request_firmware_nowait() is also provided for convenience in - request_firmware_nowait() is also provided for convenience in
non-user contexts. user contexts to request firmware asynchronously, but can't be called
in atomic contexts.
about in-kernel persistence: about in-kernel persistence:
......
...@@ -617,8 +617,9 @@ request_firmware_work_func(void *arg) ...@@ -617,8 +617,9 @@ request_firmware_work_func(void *arg)
* @cont: function will be called asynchronously when the firmware * @cont: function will be called asynchronously when the firmware
* request is over. * request is over.
* *
* Asynchronous variant of request_firmware() for contexts where * Asynchronous variant of request_firmware() for user contexts where
* it is not possible to sleep. * it is not possible to sleep for long time. It can't be called
* in atomic contexts.
**/ **/
int int
request_firmware_nowait( request_firmware_nowait(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册