wakeupinterruptible
Wakeupinterruptible, in the context of the Linux kernel, refers to the wake_up_interruptible function and the related mechanism for waking processes that are sleeping in interruptible state on a wait queue.
wake_up_interruptible wakes up tasks that are sleeping on a wait queue in the TASK_INTERRUPTIBLE state. When
- Interruptible sleep vs uninterruptible sleep: Tasks sleeping in TASK_INTERRUPTIBLE can be awakened by events, including explicit
- Scope: The function targets only tasks currently waiting in interruptible sleep on the specified wait queue.
- Synchronization: Wakeups are typically paired with a predicate that is updated under proper locking. The waking
- Relationship to wait queues: wake_up_interruptible is commonly used in conjunction with wait_event_interruptible and related macros to
- Signals and interruptions: If a process sleeping interruptibly receives a signal, user-space system calls may return
wake_up_interruptible is used by device drivers and kernel subsystems to notify waiting processes when a condition
Wait queues, TASK_INTERRUPTIBLE, wait_event_interruptible, wake_up_interruptible_all.
---