1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>wimax_msg_send</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Networking and Network Devices APIs"><link rel="up" href="ch01s06.html" title="WiMAX"><link rel="prev" href="API-wimax-msg-len.html" title="wimax_msg_len"><link rel="next" href="API-wimax-msg.html" title="wimax_msg"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">wimax_msg_send</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-wimax-msg-len.html">Prev</a> </td><th width="60%" align="center">WiMAX</th><td width="20%" align="right"> <a accesskey="n" href="API-wimax-msg.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-wimax-msg-send"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>wimax_msg_send — 2 Send a pre-allocated message to user space 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">wimax_msg_send </b>(</code></td><td><a class="link" href="API-struct-wimax-dev.html" title="struct wimax_dev">struct wimax_dev</a> * <var class="pdparam">wimax_dev</var>, </td></tr><tr><td> </td><td><a class="link" href="API-struct-sk-buff.html" title="struct sk_buff">struct sk_buff</a> * <var class="pdparam">skb</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="id-1.3.7.6.5"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>wimax_dev</code></em></span></dt><dd><p> 4 WiMAX device descriptor 5 </p></dd><dt><span class="term"><em class="parameter"><code>skb</code></em></span></dt><dd><p> 6 <span class="structname"><a class="link" href="API-struct-sk-buff.html" title="struct sk_buff">struct sk_buff</a></span> returned by <code class="function"><a class="link" href="API-wimax-msg-alloc.html" title="wimax_msg_alloc">wimax_msg_alloc</a></code>. Note the 7 ownership of <em class="parameter"><code>skb</code></em> is transferred to this function. 8 </p></dd></dl></div></div><div class="refsect1"><a name="id-1.3.7.6.6"></a><h2>Returns</h2><p> 9 0 if ok, < 0 errno code on error 10</p></div><div class="refsect1"><a name="id-1.3.7.6.7"></a><h2>Description</h2><p> 11 </p><p> 12 13 Sends a free-form message that was preallocated with 14 <code class="function"><a class="link" href="API-wimax-msg-alloc.html" title="wimax_msg_alloc">wimax_msg_alloc</a></code> and filled up. 15 </p><p> 16 17 Assumes that once you pass an skb to this function for sending, it 18 owns it and will release it when done (on success). 19</p></div><div class="refsect1"><a name="id-1.3.7.6.8"></a><h2>IMPORTANT</h2><p> 20 </p><p> 21 22 Don't use <code class="function"><a class="link" href="API-skb-push.html" title="skb_push">skb_push</a></code>/<code class="function"><a class="link" href="API-skb-pull.html" title="skb_pull">skb_pull</a></code>/<code class="function"><a class="link" href="API-skb-reserve.html" title="skb_reserve">skb_reserve</a></code> on the skb, as 23 <code class="function"><a class="link" href="API-wimax-msg-send.html" title="wimax_msg_send">wimax_msg_send</a></code> depends on skb->data being placed at the 24 beginning of the user message. 25 </p><p> 26 27 Unlike other WiMAX stack calls, this call can be used way early, 28 even before <code class="function"><a class="link" href="API-wimax-dev-add.html" title="wimax_dev_add">wimax_dev_add</a></code> is called, as long as the 29 wimax_dev->net_dev pointer is set to point to a proper 30 net_dev. This is so that drivers can use it early in case they need 31 to send stuff around or communicate with user space. 32</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-wimax-msg-len.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch01s06.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-wimax-msg.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">wimax_msg_len</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">wimax_msg</span></td></tr></table></div></body></html> 33