Skip to contentSkip to conversation

net: add comment for sock_efree() usage

PATCH Applied Oliver Hartkopp 3 participants 3 messages Mar 10, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: add comment for sock_efree() usage

---
 net/core/sock.c | 4 ++++
 1 file changed, 4 insertions(+)
net/core/sock.c +4 -0
index 93c8b20..78e89eb 100644
@@ -1655,6 +1655,10 @@ void sock_rfree(struct sk_buff *skb)
 }
 EXPORT_SYMBOL(sock_rfree);
 
+/*
+ * Buffer destructor for skbs that are not used directly in read or write
+ * path, e.g. for error handler skbs. Automatically called from kfree_skb.
+ */
 void sock_efree(struct sk_buff *skb)
 {
 	sock_put(skb->sk);
Signature · 1 line
2.1.4
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Oliver Hartkopp
---
  net/core/sock.c | 4 ++++
  1 file changed, 4 insertions(+)
net/core/sock.c +0 -0
index 93c8b20..78e89eb 100644

net/core/sock.c void sock_rfree(struct sk_buff *skb) · line 1664

Quoted 10 lines
net/core/sock.c +4 -0
@@ -1655,6 +1655,10 @@ void sock_rfree(struct sk_buff *skb)
  }
  EXPORT_SYMBOL(sock_rfree);
 
+/*
+ * Buffer destructor for skbs that are not used directly in read or write
+ * path, e.g. for error handler skbs. Automatically called from kfree_skb.
+ */
  void sock_efree(struct sk_buff *skb)
  {
  	sock_put(skb->sk);