Up until now, I've used Genetlink
to enable users to send my module some basic commands, with no parameters needed. Times have changed and I need to enable the users to add some more data to the message. Specifically, I need them to be able to send arrays of char
, int
and enum
values.
Where can I add the needed data to the message?
The examples I've seen so far (like this one) were more simple and didn't help.
I see that GENL operations define the callback as follows:
int (*doit)(struct sk_buff *skb, struct genl_info *info);
but I couldn't find any example that uses the sk_buff, only the the genl_info. Could this be what I'm looking for?