Copy_to_user usage questions in the kernel-Linux general technology-Linux programming and kernel information. The following is a detailed description. Start with linux programming. the current situation is as follows:
1. use interrupt in the driver to read external IO Data. multi-channel, large data volume, verification in the driver, the data is correct.
2. use copy_to_user in the read function of the driver to copy the data buf that is interrupted to the user space.
3. read the data collected by the driver layer using read in the user space and write the data to the hard disk as a file.
Problem: During a long period of data collection, when reading hard disk files at the application layer, data may be staggered. In most cases, channels with high data frequency have a high probability. Is there any restriction on the use of copy_to_user in this case, such as the access volume and number of accesses to the I/O port, or what are the hidden conditions for copying such memory data ??
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service