Difference between revisions of "Kernel code quotes"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
(Added packet quote)
(Perfect world from gre)
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>
 +
#ifndef I_WISH_WORLD_WERE_PERFECT
 +
 +
/* It is not :-( ...
 +
</pre>
 +
 +
:''from linux-2.6.23/net/ipv4/ip_gre.c:ipgre_err()''
  
 
----
 
----

Revision as of 15:32, 12 November 2007

Here we're collecting some funny quotes from the linux kernel code


#ifndef I_WISH_WORLD_WERE_PERFECT

/* It is not :-( ...
from linux-2.6.23/net/ipv4/ip_gre.c:ipgre_err()

weird, but documented
from linux-2.6.23/net/packet/af_packet.c:packet_create()

What the above comment does talk about? --ANK(980817)
from linux-2.6.23/net/unix/af_unix.c:unix_release_sock()

static inline int sk_hashed(const struct sock *sk)
{
        return !sk_unhashed(sk);
}
from linux-2.6.23/include/net/sock.h

Instead of using a dedicated spinlock, we (ab)use inetsw_lock
from linux-2.6.23/net/ipv4/af_inet.c:build_ehash_secret()