projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66655de
)
net: add a wrapper sk_entry()
author
Li Zefan
<lizf@cn.fujitsu.com>
Mon, 8 Feb 2010 23:18:45 +0000
(23:18 +0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 10 Feb 2010 19:12:07 +0000
(11:12 -0800)
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h
patch
|
blob
|
history
diff --git
a/include/net/sock.h
b/include/net/sock.h
index 3f1a4804bb3f8201a9f221804d272c0d69dc8706..c8d400063c16985b947f76bf742921cf6b3b9d90 100644
(file)
--- a/
include/net/sock.h
+++ b/
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);