Keyboard interruption replacement For Linux module programming
Source: Internet
Author: User
Linux module programming keyboard interrupt replacement-Linux general technology-Linux programming and kernel information, the following is a detailed description. Replaced the module programming keyboard interrupt ..
Only 40 lines of code... You have to restart to restore the original keyboard interruption ..
Register the interrupt handler first.
Use tasklet In the interrupt processing function.
Of course, there are also functions for reading the keyboard.
Pay attention to the original function matching problem. The kernel versions may be different. The header file may be different.
/* The interrupt module, repalce the keyboard interrupt
* Edit by bo-liu
* 07-5-21
*/
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.