Feb. 20, 2015
12:04 a.m.
On Thu, 19 Feb 2015 23:45:44 +0100, Grzegorz Dwornicki said:
How does the kernel know when to "unblock" the process? Function name: sk_wait_data and macro name: sk_wait_event tells me that there should be some queue checning from time to time...
No need to check the queue from time to time. Just wait - and *when data arrives*, poke the queue to wake it up (or when the timeout hits).