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).
Attachment:
pgp8PbYLaAft8.pgp
Description: PGP signature
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies