Kernel Comments

89 Followers
0 Following
142 Posts
Comments from the Linux kernel source code (edited for readability)
/* here be dragons and swear words */

/* whee. Hard work now. The user has selected a bitrate and bit format, so now we have to program our I2S controller appropriately. */

https://github.com/torvalds/linux/blob/v7.0/sound/aoa/soundbus/i2sbus/pcm.c#L309-L311

#linux #kernel #sound

linux/sound/aoa/soundbus/i2sbus/pcm.c at v7.0 · torvalds/linux

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

GitHub

/* Oh, it's a waste of space, but oh-so-yummy for debugging. This version of printf() does not include 64-bit support. "Live with it." */

https://github.com/torvalds/linux/blob/v6.19/arch/x86/boot/printf.c#L9-L14

#linux #kernel #printf #x86

linux/arch/x86/boot/printf.c at v6.19 · torvalds/linux

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

GitHub
linux/arch/arm/mach-omap2/id.c at v6.19 · torvalds/linux

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

GitHub

/* Return from trap if C-code actually fixes things, if it doesn't then we never get this far as the process will be given the look of death from Commander Peanut. */

https://github.com/torvalds/linux/blob/v6.19/arch/sparc/kernel/wof.S#L258-L261

#linux #kernel #sparc

linux/arch/sparc/kernel/wof.S at v6.19 · torvalds/linux

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

GitHub
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