copy_from_user: geting data from sleeping user application

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux