Editing Kernel code quotes
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
Here we're collecting some funny quotes from the linux kernel code | Here we're collecting some funny quotes from the linux kernel code | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
---- | ---- | ||
<pre> | <pre> | ||
− | + | /* This code sucks. But you should have seen it before! --RR */ | |
</pre> | </pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
:''from linux-2.6.23/net/ipv4/route.c'' | :''from linux-2.6.23/net/ipv4/route.c'' | ||
---- | ---- | ||
− | < | + | <pre> |
static void dn_long_error_report(struct neighbour *neigh, struct sk_buff *skb) | static void dn_long_error_report(struct neighbour *neigh, struct sk_buff *skb) | ||
{ | { | ||
Line 73: | Line 15: | ||
kfree_skb(skb); | kfree_skb(skb); | ||
} | } | ||
− | </ | + | </pre> |
:''from linux-2.6.23/net/decnet/dn_neigh.c'' | :''from linux-2.6.23/net/decnet/dn_neigh.c'' | ||
---- | ---- | ||
− | < | + | <pre> |
/* Unfortunately we don't support this one. Any brave souls? */ | /* Unfortunately we don't support this one. Any brave souls? */ | ||
− | </ | + | </pre> |
:''from linux-2.6.23/include/linux/skbuff.h:skb_forward_csum()'' | :''from linux-2.6.23/include/linux/skbuff.h:skb_forward_csum()'' | ||
---- | ---- | ||
− | < | + | <pre> |
#define IT_ID_SET 1 | #define IT_ID_SET 1 | ||
#define IT_ID_NOT_SET 0 | #define IT_ID_NOT_SET 0 | ||
− | </ | + | </pre> |
:''from linux-2.6.23/kernel/posix-timers.c'' | :''from linux-2.6.23/kernel/posix-timers.c'' | ||
---- | ---- | ||
− | < | + | <pre> |
− | * "I ask you, have you ever known what it is to be an orphan?" | + | * "I ask you, have you ever known what it is to be an orphan?" |
− | */ | + | */ |
static int will_become_orphaned_pgrp(... | static int will_become_orphaned_pgrp(... | ||
− | </ | + | </pre> |
:''from linux-2.6.23/kernel/exit.c'' | :''from linux-2.6.23/kernel/exit.c'' | ||
---- | ---- | ||
− | < | + | <pre> |
#ifndef I_WISH_WORLD_WERE_PERFECT | #ifndef I_WISH_WORLD_WERE_PERFECT | ||
/* It is not :-( ... | /* It is not :-( ... | ||
− | </ | + | </pre> |
:''from linux-2.6.23/net/ipv4/ip_gre.c:ipgre_err()'' | :''from linux-2.6.23/net/ipv4/ip_gre.c:ipgre_err()'' | ||
Line 125: | Line 67: | ||
---- | ---- | ||
− | < | + | <pre> |
static inline int sk_hashed(const struct sock *sk) | static inline int sk_hashed(const struct sock *sk) | ||
{ | { | ||
return !sk_unhashed(sk); | return !sk_unhashed(sk); | ||
} | } | ||
− | </ | + | </pre> |
:''from linux-2.6.23/include/net/sock.h'' | :''from linux-2.6.23/include/net/sock.h'' |