[GENETLINK] introduce command names Introduce optional command names. While command names can be put in user space by the author of the command, this alleviates things for the discovery process without requiring any user space code written. In a recent tutorial that i gave, the desire for this feature was the highest. Signed-off-by: Jamal Hadi Salim --- commit c3b92488bea3f11a6cc7c1c59101444c26ad12ce tree 52166fb1ea684e989fef16de89c85fb9bf551bb8 parent b6ac8f41bdd2edd9d215e376efa47261e9b118a1 author Jamal Hadi Salim Sat, 02 Dec 2006 07:08:15 -0500 committer Jamal Hadi Salim Sat, 02 Dec 2006 07:08:15 -0500 include/net/genetlink.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/net/genetlink.h b/include/net/genetlink.h index 7fd131c..52bc278 100644 --- a/include/net/genetlink.h +++ b/include/net/genetlink.h @@ -49,6 +49,7 @@ struct genl_info /** * struct genl_ops - generic netlink operations * @cmd: command identifier + * @name: command name * @flags: flags * @policy: attribute validation policy * @doit: standard command callback @@ -58,6 +59,7 @@ struct genl_info struct genl_ops { u8 cmd; + char name[GENL_NAMSIZ]; unsigned int flags; struct nla_policy *policy; int (*doit)(struct sk_buff *skb,