You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return (size_of_message=0); // clear the position to the start and return 0
should return the size of the message to be read by the user space application. The reason that the included test application doesn't fail is because it does not catch this returned value (0):
After about 100 cycles, the kernel ooooops. And the whole system began to be unresponsive. Browser does not work... I'll try to capture dmesg and post here.
Hi, thanks for the blog about kernel module programming.
I'm studying the code and adapting a bit for my needs but noticed that the line:
exploringBB/extras/kernel/ebbcharmutex/ebbcharmutex.c
Line 139 in efb5987
should return the size of the message to be read by the user space application. The reason that the included test application doesn't fail is because it does not catch this returned value (0):
exploringBB/extras/kernel/ebbcharmutex/testebbcharmutex.c
Line 44 in efb5987
, but in any other utility it will not read the message sent by the kernel. Thanks again!
The text was updated successfully, but these errors were encountered: