wait queue in rtc.c rtc_read

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello all,

I'm studying the code of rtc.c. When I look at the rtc_read function I fail to understand why the process is put on a wait queue. Aren't processes put on queue's when data in not available and then schedule()ed? Why isn't there a check for data first before it's put on a wait queue? For example after the: if (data != 0)
just wondering.

Richard

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux