title: error: ‘struct msghdr’ has no member named ‘msg_iov’
body: <p>I am writing unix socket in kernel module and when I try to compile, I get the following errors:</p>
  
  <blockquote>
    <p>error: ‘struct msghdr’ has no member named ‘msg_iov’</p>
    
    <p>error: ‘struct msghdr’ has no member named ‘msg_iovlen’</p>
  </blockquote>
  
  <p>I try read the implementation of <code>msghdr</code> but I didn't find anything.</p>
  
  <pre class="lang-c prettyprint-override"><code>ret = kernel_recvmsg(sock, msg, vec, BUFFER_SIZE, BUFFER_SIZE, 0);
  
  msg_iov = msg-&gt;msg_iov;
  msg_iovlen = msg-&gt;msg_iovlen;
  </code></pre>