Event waiting queue is generally used for asynchronous communication of Linux driver. It can also be called application device usage right waiting queue. When multiple processes are going to operate a device, the event queue is generally used at this time.
1, can not interrupt sleep:
wait_event(queue, condition)
wait_event_interruptible(queue, condition)
Two functions only become in condition True can wake up, otherwise it will sleep all the time, that is, calling wake_up() will not wake up. Zzzzzzzzzzzzz
2, interruptible sleep
wait_event_timeout(queue, condition, timeout)
wait_event_interruptible_timeout(queue, condition, timeout)
Whether the condition becomes true or wake_up_interruptible() is called can be awakened.
3, wake up function:
void wake_up(wait_queue_head_t *queue); //wake up all
void wake_up_interruptible(wait_queue_head_t *queue); //wake up interruptible
When we write the shell, there will be such a scene: For example: I want to back up the passwd fil
disk partitioning under Linux, file system formatting and raid devicecomparing disk partition format
Linux support for NICs is better than other hardware. XteamLinux 4.0
self-entertainment, I decided to start a Linux server, then execute the ld & ldquo;rm –rf /&rd
Nginx reverse proxy setup tutorial
Current sinking, current sinking, sinking current, pull-up resistor, high resistance state analysis
How to install JDK1.5 under Linux
Sogou Pinyin input method under Linux: ibus-cloud-pinyin
Linux uses ipvsadm to achieve web load balancing
How to use ReiserFS file system in Linux environment
LVM configuration under SUSE server
How to use Linux to establish a dial-up server
Can you use a desktop computer?
How to restore the Win8 system DPI setting is too large?
How to close the visual effect of the win7 system
Windows Server 2008 takes virtualization to new heights
How to set the night mode of Win10 system Edge browser? How to open the eye protection mode
Win7 previews multiple interface settings in WPS documents simultaneously
Power Mode Management Optimization Guide for Win8.1
Win8 lock screen wallpaper does not show up whether it is boot login or standby
How to quickly open the tablet
Method for adding shortcuts to attachments on the Win8 system desktop