Kernel Comments

84 Followers
0 Following
136 Posts
Comments from the Linux kernel source code (edited for readability)
/* here be dragons and swear words */
linux/net/ipv4/ipconfig.c at v6.19 · torvalds/linux

Linux kernel source tree. Contribute to torvalds/linux development by creating an account on GitHub.

GitHub

/* WARNING: This routine is hairy and very complicated, but it must be as fast as possible as it handles the allocation of register windows to the user and kernel. If you touch this code be very careful as many other pieces of the kernel depend upon how this code behaves. You have been duly warned... */

https://github.com/torvalds/linux/blob/v6.18/arch/sparc/kernel/wof.S#L18-L24

#linux #kernel #sparc

linux/net/rose/af_rose.c at v6.18 · torvalds/linux

Linux kernel source tree. Contribute to torvalds/linux development by creating an account on GitHub.

GitHub

/* I'm sure the JFFS2 code has done me permanent damage. I now think the following is normal */

https://github.com/torvalds/linux/blob/v6.18/drivers/mtd/parsers/redboot.c#L218-L220

#linux #kernel #jffs2

linux/drivers/mtd/parsers/redboot.c at v6.18 · torvalds/linux

Linux kernel source tree. Contribute to torvalds/linux development by creating an account on GitHub.

GitHub
/*
* "Define 'is'", Bill Clinton
* "Define 'if'", Steven Rostedt
*/

https://github.com/torvalds/linux/blob/v6.17/include/linux/compiler.h#L51-L54

#linux #kernel #billclinton

linux/include/linux/compiler.h at v6.17 · torvalds/linux

Linux kernel source tree. Contribute to torvalds/linux development by creating an account on GitHub.

GitHub

/* This is ALPHA test software. This code may break your machine, randomly fail to work with new releases, misbehave and/or generally screw up. It might even work. */

https://github.com/torvalds/linux/blob/v6.17/net/x25/x25_route.c#L5-L7

#linux #kernel #x25

linux/net/x25/x25_route.c at v6.17 · torvalds/linux

Linux kernel source tree. Contribute to torvalds/linux development by creating an account on GitHub.

GitHub
linux/drivers/video/fbdev/macfb.c at v6.17 · torvalds/linux

Linux kernel source tree. Contribute to torvalds/linux development by creating an account on GitHub.

GitHub
/* BLACKLIST !!
*
* First blacklist any products that are egregiously nonconformant
* with the CDC Ethernet specs. Minor braindamage we cope with; when
* they're not even trying, needing a separate driver is only the first
* of the differences to show up.
*/

https://github.com/torvalds/linux/blob/v6.17/drivers/net/usb/cdc_ether.c#L575-L581

#linux #kernel #net #usb

linux/drivers/net/usb/cdc_ether.c at v6.17 · torvalds/linux

Linux kernel source tree. Contribute to torvalds/linux development by creating an account on GitHub.

GitHub
linux/arch/sparc/include/asm/floppy_64.h at v6.16 · torvalds/linux

Linux kernel source tree. Contribute to torvalds/linux development by creating an account on GitHub.

GitHub
linux/lib/string.c at v6.16 · torvalds/linux

Linux kernel source tree. Contribute to torvalds/linux development by creating an account on GitHub.

GitHub