Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Kernel code quotes

131 bytes added, 15:49, 6 November 2007
Added sk_hashed and fixed code->pre
----
<big><codepre>
Instead of using a dedicated spinlock, we (ab)use inetsw_lock
</code></bigpre>
:''from linux-2.6.23/net/ipv4/af_inet.c:build_ehash_secret()''
----
<pre>
static inline int sk_hashed(const struct sock *sk)
{
return !sk_unhashed(sk);
}
</pre>
 
:''from linux-2.6.23/include/net/sock.h''
[[Category: Kernel]]