Hi,
Kernel module needs to get data from user application.
I am using copy_from_user().
If user application sleeps (sleep(10)) data cannot be copied (copy_from_user returns positive number) and receiving buffer gets garbage data (instead of keeping data what it had before).
If user application is not sleeping it usually works fine (but sometimes though quit rarely the same problem may occur).
There is at least 70 Mb of free space. Size of buffers is about 8-20K so swapping should not take place.
I tried that on RedHat 7.3 and RedHat 8.0 with the same result.
Can you suggest how to eliminate this problem?
Thank you,
Rostislav.
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.