title: How do I create a "netlink" between kernel and userspace?
body: <p>I want to use netlink to communicate between an application and kernel space. My Linux kernel version is 2.6.28, and the following is my wrong code:</p>
  
  <pre><code>nf_sock=netlink_kernel_create(NL_PROTO,0,nl_user_skb,THIS_MODULE);
  </code></pre>
  
  <p>The abbreviated error message is:</p>
  
  <pre><code>error: too few arguments to function 'netlink_kernel_create'
  </code></pre>
  
  <p>In the file <code>&lt;linux/netlink.h&gt;</code>, the function <code>netlink_kernel_create()</code> is defined as </p>
  
  <pre><code>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)
  </code></pre>
  
  <p>I don't understand what to use for the first argument, <code>net</code>. Can someone explain what I should use here?</p>