Now I want to create a netlink which is used to communicate between the user and kernel space. My Linux kernel version is 2.6.28. the following is my wrong code:
nf_sock=netlink_kernel_create(NL_PROTO,0,nl_user_skb,THIS_MODULE);
The error message is briefly as:
error: too few arguments to function 'netlink_kernel_creat'
In the file , the function 'netlink_kernel_create()' is defined as
extern struct sock *netlink_kernel_create(struct net *net,int unit,unsigned int groups,void (*input)(struct sk_buff *skb),struct mutex *cb_mutex,struct module *module)
I don't known what't the meaning by the argument net, who can give me some explanation, thanks!