Komentarze kodu źródłowego programistów kernela ;)

Czasami aż zadziwiające jakie komentarze można znaleźć w kodzie źródłowym kernela ;)

1
2
3
4
5
6
sunrise ~ #
cd /usr/src \
wget http://www.kernel.org/pub/linux/kernel/v2.6/testing/linux-2.6.37-rc5.tar.bz2 \
bunzip2 linux-2.6.37-rc5.tar.bz2 && tar xf  linux-2.6.37-rc5.tar \
cd linux-2.6.37-rc5 \
egrep -ir "( fuck)|( shit)" *


Output:

arch/m68k/include/asm/sun3ints.h:/* master list of VME vectors -- don't fuck with this */

arch/mips/include/asm/mipsprom.h:/* More PROM shit.  Probably has to do with VME RMW cycles??? */

arch/mips/kernel/genex.S:	 * Big shit, we now may have two dirty primary cache lines for the same

arch/mips/pci/ops-bridge.c:	 * IOC3 is fucked fucked beyond believe ...  Don't even give the

arch/mips/pci/ops-bridge.c:	 * IOC3 is fucked fucked beyond believe ...  Don't even give the

arch/mips/pci/ops-bridge.c:	 * IOC3 is fucked fucked beyond believe ...  Don't try to access

arch/mips/pci/ops-bridge.c:	 * IOC3 is fucked fucked beyond believe ...  Don't even give the

arch/mips/pci/ops-bridge.c:	 * IOC3 is fucked fucked beyond believe ...  Don't even give the

arch/mips/pci/ops-bridge.c:	 * IOC3 is fucked fucked beyond believe ...  Don't try to access

arch/mips/pci/ops-bridge.c:	 * IOC3 is fucked fucked beyond believe ...  Don't even give the

arch/mips/pci/ops-bridge.c:	 * IOC3 is fucked fucked beyond believe ...  Don't even give the

arch/mips/pci/ops-bridge.c:	 * IOC3 is fucked fucked beyond believe ...  Don't try to access

arch/mips/pci/ops-bridge.c:	 * IOC3 is fucked fucked beyond believe ...  Don't even give the

arch/mips/pci/ops-bridge.c:	 * IOC3 is fucked fucked beyond believe ...  Don't even give the

arch/mips/pci/ops-bridge.c:	 * IOC3 is fucked fucked beyond believe ...  Don't try to access

arch/mips/sgi-ip22/ip22-setup.c:	 * fucking with the memory controller because it needs to know the

arch/parisc/kernel/sys_parisc.c:/* Fucking broken ABI */

arch/sparc/kernel/head_32.S:	/* XXX Fucking Cypress... */

arch/sparc/kernel/pcic.c:				 * to shit into regions like that.

arch/sparc/kernel/traps_64.c:		/* Shit... */

arch/sparc/lib/checksum_32.S:	 * give up.  I'm serious, I am going to kick the living shit

arch/sparc/mm/srmmu.c:	 * this shit off... nice job Fujitsu.

arch/sparc/mm/ultra.S:	 * in Microelectronics who refused to fix this shit.

arch/x86/kernel/cpu/cpufreq/powernow-k7.c: * Some Athlon laptops have really fucked PST tables.

arch/x86/platform/visws/visws_quirks.c:	 * What lunatic came up with this shit?

Documentation/DocBook/kernel-hacking.tmpl:         * give up.  I'm serious, I am going to kick the living shit

Documentation/DocBook/kernel-locking.tmpl:       If you don't see why, please stay the fuck away from my code.

drivers/ata/sata_via.c: *	SCR registers on vt6420 are pieces of shit and may hang the

drivers/block/ub.c:				 * This is typically ENOMEM or some other such shit.

drivers/ide/cmd640.c: *  These chips are basically fucked by design, and getting this driver

drivers/media/video/bt819.c:					   BUG? Why does turning the chroma comb on fuck up color?

drivers/mtd/mtd_blkdevs.c:	   registered, to prevent the link/init ordering from fucking

drivers/net/declance.c: *      v0.007: Big shit. The LANCE seems to use a different DMA mechanism to

drivers/net/sunhme.c:	/* Remember: "Different name, same old buggy as shit hardware." */

drivers/net/sunhme.c:/* Only Sun can take such nice parts and fuck up the programming interface

drivers/net/sunlance.c: *		  This was the sun4c killer. Shit, stupid bug.

drivers/net/wan/z85230.c:			ct=2;	/* Shit happens.. */

drivers/net/wireless/iwlwifi/iwl3945-base.c:	/* all this shit doesn't belong into sysfs anyway */

drivers/scsi/qlogicpti.h:/* Am I fucking pedantic or what? */

drivers/staging/slicoss/slicoss.c:	u32 c;		/*  CRC shit reg                 */

drivers/staging/slicoss/slicoss.c:			    we wouldn't need this shit

drivers/video/aty/radeon_pm.c:	/* Hrm... same shit, X doesn't do that but I have to */

drivers/watchdog/shwdt.c:	 * brain-damage, it's managed to fuck things up one step further..

fs/jffs2/dir.c:		/* Oh shit. We really ought to make a single node which can do both atomically */

fs/notify/inotify/inotify_user.c:	 * fucked up somewhere.

fs/xfs/xfs_btree.h:	case XFS_BTNUM_MAX: ASSERT(0); /* fucking gcc */ ; break;	\

fs/xfs/xfs_btree.h:	case XFS_BTNUM_MAX: ASSERT(0); /* fucking gcc */ ; break;	\

lib/vsprintf.c: * Wirzenius wrote this portably, Torvalds fucked it up :-) 

net/core/skbuff.c:			/* Fuck, we are miserable poor guys... */

net/ipv4/netfilter/nf_nat_snmp_basic.c: * (And this is the fucking 'basic' method).

net/ipv4/tcp_input.c:	 *    all the algo is pure shit and should be replaced

sound/oss/opl3.c:	 * What the fuck is going on here?  We leave junk in the beginning

sound/oss/uart6850.c: *	Status: Testing required (no shit -jgarzik)

sound/pci/ac97/ac97_patch.c: * shit may happen.

sound/pci/cs46xx/dsp_spos_scb_lib.c:	/* !!!! THIS IS A PIECE OF SHIT MADE BY ME !!! */

2 komentarzy do “Komentarze kodu źródłowego programistów kernela ;)

Zostaw komentarz

XHTML: Możesz użyć następujących TAG'ów: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • RSS
  • Blip
  • Facebook
  • GoldenLine
  • LinkedIn
  • Last.fm