mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
rtnetlink: make rtnl_register accept a flags parameter
This change allows us to later indicate to rtnetlink core that certain doit functions should be called without acquiring rtnl_mutex. This change should have no effect, we simply replace the last (now unused) calcit argument with the new flag. Signed-off-by: Florian Westphal <fw@strlen.de> Reviewed-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e1fa6d216d
commit
b97bac64a5
26 changed files with 95 additions and 96 deletions
|
@ -7,12 +7,11 @@
|
|||
typedef int (*rtnl_doit_func)(struct sk_buff *, struct nlmsghdr *,
|
||||
struct netlink_ext_ack *);
|
||||
typedef int (*rtnl_dumpit_func)(struct sk_buff *, struct netlink_callback *);
|
||||
typedef u16 (*rtnl_calcit_func)(struct sk_buff *, struct nlmsghdr *);
|
||||
|
||||
int __rtnl_register(int protocol, int msgtype,
|
||||
rtnl_doit_func, rtnl_dumpit_func, rtnl_calcit_func);
|
||||
rtnl_doit_func, rtnl_dumpit_func, unsigned int flags);
|
||||
void rtnl_register(int protocol, int msgtype,
|
||||
rtnl_doit_func, rtnl_dumpit_func, rtnl_calcit_func);
|
||||
rtnl_doit_func, rtnl_dumpit_func, unsigned int flags);
|
||||
int rtnl_unregister(int protocol, int msgtype);
|
||||
void rtnl_unregister_all(int protocol);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue