mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
Revert "genetlink: remove genl_bind"
This reverts commit 7b42410d35 which is
commit 1e82a62fec613844da9e558f3493540a5b7a7b67 upstream.
It breaks the API and isn't something we should really have to worry
about in android devices.
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Change-Id: I4ec83063705a9f0fe449ff46803f6594b69efd08
This commit is contained in:
parent
51462c2494
commit
68815d5b7e
2 changed files with 57 additions and 0 deletions
|
|
@ -35,6 +35,12 @@ struct genl_info;
|
|||
* do additional, common, filtering and return an error
|
||||
* @post_doit: called after an operation's doit callback, it may
|
||||
* undo operations done by pre_doit, for example release locks
|
||||
* @mcast_bind: a socket bound to the given multicast group (which
|
||||
* is given as the offset into the groups array)
|
||||
* @mcast_unbind: a socket was unbound from the given multicast group.
|
||||
* Note that unbind() will not be called symmetrically if the
|
||||
* generic netlink family is removed while there are still open
|
||||
* sockets.
|
||||
* @attrbuf: buffer to store parsed attributes (private)
|
||||
* @mcgrps: multicast groups used by this family
|
||||
* @n_mcgrps: number of multicast groups
|
||||
|
|
@ -58,6 +64,8 @@ struct genl_family {
|
|||
void (*post_doit)(const struct genl_ops *ops,
|
||||
struct sk_buff *skb,
|
||||
struct genl_info *info);
|
||||
int (*mcast_bind)(struct net *net, int group);
|
||||
void (*mcast_unbind)(struct net *net, int group);
|
||||
struct nlattr ** attrbuf; /* private */
|
||||
const struct genl_ops * ops;
|
||||
const struct genl_multicast_group *mcgrps;
|
||||
|
|
|
|||
Loading…
Reference in a new issue