def nl_send_iovec(sk, msg, iov, _):
hdr = msghdr(msg_name=sk.s_peer, msg_iov=iov)<EOL>dst = nlmsg_get_dst(msg)<EOL>if dst.nl_family == socket.AF_NETLINK:<EOL><INDENT>hdr.msg_name = dst<EOL><DEDENT>creds = nlmsg_get_creds(msg)<EOL>if creds:<EOL><INDENT>raise NotImplementedError  <EOL><DEDENT>return nl_sendmsg(sk, msg, hdr)<EOL>
Transmit Netlink message.

    https://github.com/thom311/libnl/blob/libnl3_2_25/lib/nl.c#L342

    This function is identical to nl_send().

    This function triggers the `NL_CB_MSG_OUT` callback.

    Positional arguments:
    sk -- Netlink socket (nl_sock class instance).
    msg -- Netlink message (nl_msg class instance).
    iov -- data payload to be sent (bytearray).

    Returns:
    Number of bytes sent on success or a negative error code.