Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7fceba8d authored by Stephen Boyd's avatar Stephen Boyd
Browse files

msm: ramdump: Don't fail read when !O_NONBLOCK



If the ramdump device node is opened in a blocking manner
(!O_NONBLOCK) then it makes sense to have that process sleep
waiting for the do_ramdump() function to be called in the kernel
instead of failing the read(2) call. This allows one to do
something like:

	cat /dev/ramdump_test

and then wait for the process to exit once do_ramdump() is called
and the read completes. The existing poll(2) interface is
unaffected by this change.

Change-Id: I9749e48f2561adae5a3f1bcb120a2aa4afcece82
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 98312745
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment