Kernel code quotes

From OpenVZ Virtuozzo Containers Wiki
Revision as of 13:37, 7 November 2007 by Xemul (talk | contribs) (Added ANK comment in af_unix.c)
Jump to: navigation, search

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


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()