From 2168e5e784bfd2be6d3358cb07764aab4666c661 Mon Sep 17 00:00:00 2001 From: Li Zefan Date: Mon, 8 Feb 2010 23:18:45 +0000 Subject: [PATCH] --- yaml --- r: 183981 b: refs/heads/master c: c4146644a56b1f213c4c5567c75771883bec33c7 h: refs/heads/master i: 183979: f46f3392b5be56e0ec0f0ac02fa97c5d1d169eeb v: v3 --- [refs] | 2 +- trunk/include/net/sock.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 17a5171dfef3..b2061c912e0d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 66655de6d132b726be64c324bc3f9ea366d20697 +refs/heads/master: c4146644a56b1f213c4c5567c75771883bec33c7 diff --git a/trunk/include/net/sock.h b/trunk/include/net/sock.h index 3f1a4804bb3f..c8d400063c16 100644 --- a/trunk/include/net/sock.h +++ b/trunk/include/net/sock.h @@ -317,6 +317,11 @@ struct sock { /* * Hashed lists helper routines */ +static inline struct sock *sk_entry(const struct hlist_node *node) +{ + return hlist_entry(node, struct sock, sk_node); +} + static inline struct sock *__sk_head(const struct hlist_head *head) { return hlist_entry(head->first, struct sock, sk_node);