Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
misc:comments_in_linux_kernel [2012/05/22 19:46]
Sean Madden created
misc:comments_in_linux_kernel [2017/02/05 22:43] (current)
Line 1: Line 1:
 ===== Comments found in the Kernel Source ===== ===== Comments found in the Kernel Source =====
 +found in linux kernel (include/linux/jiffies.h)
 +<code c>
 +#else
 +# error You lose.
 +#endif
 +</code>
 +
 +<code c>
 +/*
 + * Do this with "<0" and ">=0" to only test the sign of the result. A
 + * good compiler would generate better code (and a really good compiler
 + * wouldn't care). Gcc is currently neither.
 + */
 +</code>
 +
 +found in drivers/serial/8250.c
 +
 <code c++> <code c++>
 /* /*
  * This is a quickie test to see how big the FIFO is.  * This is a quickie test to see how big the FIFO is.
  * It doesn't work at all the time, more's the pity.  * It doesn't work at all the time, more's the pity.
 + */
 +</code>
 +
 +<code c++>
 +/*
 + * This is a helper routine to autodetect StarTech/Exar/Oxsemi UART's.
 + * When this function is called we know it is at least a StarTech
 + * 16650 V2, but it might be one of several StarTech UARTs, or one of
 + * its clones.  (We treat the broken original StarTech 16650 V1 as a
 + * 16550, and why not?  Startech doesn't seem to even acknowledge its
 + * existence.)
 + 
 + * What evil have men's minds wrought...
  */  */
 </code> </code>
misc/comments_in_linux_kernel.1337715985.txt.gz ยท Last modified: 2017/02/05 22:43 (external edit)
Back to top
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0