chemikadze — Каменты ядра - избранное
Навеянно постом Стань Ъ Линуксоидом....
Давно слышал интересные вещи про комментарии в коде ядра, решил поковырять, и не был разочарован. Итак, начнем.
./net/ipv4/tcp_input.c:701: * all the algo is pure shit and should be replaced
./drivers/net/sunhme.c:930: /* Remember: "Different name, same old buggy as shit hardware." */
./drivers/net/wireless/iwlwifi/iwl3945-base.c:7594: /* all this shit doesn't belong into sysfs anyway */
./drivers/scsi/qlogicpti.c:782: if (qpti->clock == 0) /* bullshit */
./drivers/ata/sata_via.c:316: * SCR registers on vt6420 are pieces of shit and may hang the
./drivers/mmc/host/sdhci.c:1063: * Some (ENE) controllers go apeshit on some ios operation,
./arch/sparc/kernel/pcic.c:497: * to shit into regions like that.
./arch/sparc/mm/srmmu.c:1607: * this shit off... nice job Fujitsu.
./sound/pci/ac97/ac97_patch.c:3612: * shit may happen.
./fs/xfs/xfs_btree.h:137: case XFS_BTNUM_MAX: ASSERT(0); /* fucking gcc */ ; break; \
./linux-2.6.29-gentoo-r5/net/ipv4/netfilter/nf_nat_snmp_basic.c::1030 * (And this is the fucking 'basic' method).
./linux-2.6.29-gentoo-r5/lib/vsprintf.c:9: * Wirzenius wrote this portably, Torvalds fucked it up :-)
./linux-2.6.29-gentoo-r5/drivers/net/sunhme.c:986:/* Only Sun can take such nice parts and fuck up the programming interface
./linux-2.6.29-gentoo-r5/drivers/net/sunhme.c:2067: /* This card is _fucking_ hot... */
./linux-2.6.29-gentoo-r5/drivers/scsi/qlogicpti.h:64:/* Am I fucking pedantic or what? */
./linux-2.6.29-gentoo-r5/arch/x86/kernel/cpu/cpufreq/powernow-k7.c:585: * Some Athlon laptops have really fucked PST tables.
./linux-2.6.29-gentoo-r5/arch/m68k/include/asm/sun3ints.h:30:/* master list of VME vectors -- don't fuck with this */
./linux-2.6.29-gentoo-r5/arch/sparc/include/asm/system_64.h:192: /* If you fuck with this, update ret_from_syscall code too. */
./linux-2.6.29-gentoo-r5/arch/mips/pci/ops-bridge.c:59: * IOC3 is fucked fucked beyond believe ... Don't even give the
./linux-2.6.29-gentoo-r5/sound/oss/opl3.c:833: * What the fuck is going on here? We leave junk in the beginning
./linux-2.6.29-gentoo-r5/net/irda/irnet/irnet_irda.c:1221: /* Give a kick in the ass of ppp_generic so that he sends us some data */
./linux-2.6.29-gentoo-r5/arch/arm/mach-lh7a40x/include/mach/hardware.h:49:/* Let's kick gcc's ass again... */
./linux-2.6.29-gentoo-r5/arch/mips/kernel/process.c:433: * get_wchan - a maintenance nightmare^W^Wpain in the ass ...
PS: тут не все, но и этого думаю достаточно)
Давно слышал интересные вещи про комментарии в коде ядра, решил поковырять, и не был разочарован. Итак, начнем.
./net/ipv4/tcp_input.c:701: * all the algo is pure shit and should be replaced
1 2 3 4 5 6 7 8 9 |
/* 2. Fixups made earlier cannot be right. |
./drivers/net/sunhme.c:930: /* Remember: "Different name, same old buggy as shit hardware." */
1 2 3 |
/* Remember: "Different name, same old buggy as shit hardware." */ |
./drivers/net/wireless/iwlwifi/iwl3945-base.c:7594: /* all this shit doesn't belong into sysfs anyway */
/* all this shit doesn't belong into sysfs anyway */
./drivers/scsi/qlogicpti.c:782: if (qpti->clock == 0) /* bullshit */
1 2 3 |
if (qpti->clock == 0) /* bullshit */ |
./drivers/ata/sata_via.c:316: * SCR registers on vt6420 are pieces of shit and may hang the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
/** |
./drivers/mmc/host/sdhci.c:1063: * Some (ENE) controllers go apeshit on some ios operation,
1 2 3 4 5 6 7 8 9 |
/* |
./arch/sparc/kernel/pcic.c:497: * to shit into regions like that.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
/* |
./arch/sparc/mm/srmmu.c:1607: * this shit off... nice job Fujitsu.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
/* |
./sound/pci/ac97/ac97_patch.c:3612: * shit may happen.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
/* |
./fs/xfs/xfs_btree.h:137: case XFS_BTNUM_MAX: ASSERT(0); /* fucking gcc */ ; break; \
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
#define XFS_BTREE_STATS_INC(cur, stat) \ |
./linux-2.6.29-gentoo-r5/net/ipv4/netfilter/nf_nat_snmp_basic.c::1030 * (And this is the fucking 'basic' method).
1 2 3 4 5 6 7 |
/* |
./linux-2.6.29-gentoo-r5/lib/vsprintf.c:9: * Wirzenius wrote this portably, Torvalds fucked it up :-)
1 2 3 4 5 6 7 8 9 |
/* vsprintf.c -- Lars Wirzenius & Linus Torvalds. */ |
./linux-2.6.29-gentoo-r5/drivers/net/sunhme.c:986:/* Only Sun can take such nice parts and fuck up the programming interface
1 2 3 4 5 6 7 |
|
./linux-2.6.29-gentoo-r5/drivers/net/sunhme.c:2067: /* This card is _fucking_ hot... */
./linux-2.6.29-gentoo-r5/drivers/scsi/qlogicpti.h:64:/* Am I fucking pedantic or what? */
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
/* Am I fucking pedantic or what? */ |
./linux-2.6.29-gentoo-r5/arch/x86/kernel/cpu/cpufreq/powernow-k7.c:585: * Some Athlon laptops have really fucked PST tables.
1 2 3 4 5 6 7 8 9 |
/* |
./linux-2.6.29-gentoo-r5/arch/m68k/include/asm/sun3ints.h:30:/* master list of VME vectors -- don't fuck with this */
./linux-2.6.29-gentoo-r5/arch/sparc/include/asm/system_64.h:192: /* If you fuck with this, update ret_from_syscall code too. */
./linux-2.6.29-gentoo-r5/arch/mips/pci/ops-bridge.c:59: * IOC3 is fucked fucked beyond believe ... Don't even give the
1 2 3 4 5 6 7 |
/* |
./linux-2.6.29-gentoo-r5/sound/oss/opl3.c:833: * What the fuck is going on here? We leave junk in the beginning
1 2 3 4 5 6 7 |
/* |
./linux-2.6.29-gentoo-r5/net/irda/irnet/irnet_irda.c:1221: /* Give a kick in the ass of ppp_generic so that he sends us some data */
1 2 3 4 5 |
|
./linux-2.6.29-gentoo-r5/arch/arm/mach-lh7a40x/include/mach/hardware.h:49:/* Let's kick gcc's ass again... */
1 2 3 4 5 6 7 |
/* Let's kick gcc's ass again... */ |
./linux-2.6.29-gentoo-r5/arch/mips/kernel/process.c:433: * get_wchan - a maintenance nightmare^W^Wpain in the ass ...
1 2 3 4 5 |
/* |
PS: тут не все, но и этого думаю достаточно)