|
@@ -152,8 +152,9 @@ static inline int genl_register_family(struct genl_family *family)
|
|
*
|
|
*
|
|
* Return 0 on success or a negative error code.
|
|
* Return 0 on success or a negative error code.
|
|
*/
|
|
*/
|
|
-static inline int genl_register_family_with_ops(struct genl_family *family,
|
|
|
|
- const struct genl_ops *ops, size_t n_ops)
|
|
|
|
|
|
+static inline int _genl_register_family_with_ops(struct genl_family *family,
|
|
|
|
+ const struct genl_ops *ops,
|
|
|
|
+ size_t n_ops)
|
|
{
|
|
{
|
|
family->module = THIS_MODULE;
|
|
family->module = THIS_MODULE;
|
|
family->ops = ops;
|
|
family->ops = ops;
|
|
@@ -161,6 +162,9 @@ static inline int genl_register_family_with_ops(struct genl_family *family,
|
|
return __genl_register_family(family);
|
|
return __genl_register_family(family);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#define genl_register_family_with_ops(family, ops) \
|
|
|
|
+ _genl_register_family_with_ops((family), (ops), ARRAY_SIZE(ops))
|
|
|
|
+
|
|
int genl_unregister_family(struct genl_family *family);
|
|
int genl_unregister_family(struct genl_family *family);
|
|
int genl_register_mc_group(struct genl_family *family,
|
|
int genl_register_mc_group(struct genl_family *family,
|
|
struct genl_multicast_group *grp);
|
|
struct genl_multicast_group *grp);
|