Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41098
b: refs/heads/master
c: dc9b334
h: refs/heads/master
v: v3
  • Loading branch information
Paul Bonser authored and David S. Miller committed Nov 25, 2006
1 parent 1638996 commit dd9edc5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 95f6134e175fd69ab3f088f7a09adbd3fd3548e1
refs/heads/master: dc9b334622bff6d22456917a034c2e2d194b9328
15 changes: 10 additions & 5 deletions trunk/include/net/sock.h
Original file line number Diff line number Diff line change
Expand Up @@ -883,18 +883,23 @@ static inline int sk_filter(struct sock *sk, struct sk_buff *skb)
}

/**
* 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);
Expand Down

0 comments on commit dd9edc5

Please sign in to comment.