* [PATCH] Networking: re-fix of doc-comment in sock.h
@ 2006-11-18 8:27 Paul Bonser
2006-11-24 1:56 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Paul Bonser @ 2006-11-18 8:27 UTC (permalink / raw)
To: netdev; +Cc: linux-kernel
From: Paul Bonser <misterpib@gmail.com>
Restoring old, correct comment for sk_filter_release, moving it to where it should actually be, and changing new comment into proper comment for sk_filter_rcu_free, where it actually makes sense.
The original fix submitted for this on Oct 23 mistakenly documented the wrong function.
Signed-off-by: Paul Bonser <misterpib@gmail.com>
---
diff --git a/include/net/sock.h b/include/net/sock.h
index ac286a3..9cdbae2 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -883,18 +883,23 @@ static inline int sk_filter(struct sock
}
/**
- * sk_filter_release: Release a socket filter
- * @rcu: rcu_head that contains the sk_filter info to remove
- *
- * Remove a filter from a socket and release its resources.
+ * sk_filter_rcu_free: Free a socket filter
+ * @rcu: rcu_head that contains the sk_filter to free
*/
-
static inline void sk_filter_rcu_free(struct rcu_head *rcu)
{
struct sk_filter *fp = container_of(rcu, struct sk_filter, rcu);
kfree(fp);
}
+/**
+ * sk_filter_release: Release a socket filter
+ * @sk: socket
+ * @fp: filter to remove
+ *
+ * Remove a filter from a socket and release its resources.
+ */
+
static inline void sk_filter_release(struct sock *sk, struct sk_filter *fp)
{
unsigned int size = sk_filter_len(fp);
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-11-24 1:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-18 8:27 [PATCH] Networking: re-fix of doc-comment in sock.h Paul Bonser
2006-11-24 1:56 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).