1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><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>struct wimax_dev * <var class="pdparam">wimax_dev</var>, </td></tr><tr><td> </td><td>struct sk_buff * <var class="pdparam">skb</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1097570484"></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">struct sk_buff</span> returned by <code class="function">wimax_msg_alloc</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="idp1097574076"></a><h2>Returns</h2><p> 9 0 if ok, < 0 errno code on error 10</p></div><div class="refsect1"><a name="idp1097574780"></a><h2>Description</h2><p> 11 </p><p> 12 13 Sends a free-form message that was preallocated with 14 <code class="function">wimax_msg_alloc</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="idp1097576212"></a><h2>IMPORTANT</h2><p> 20 </p><p> 21 22 Don't use <code class="function">skb_push</code>/<code class="function">skb_pull</code>/<code class="function">skb_reserve</code> on the skb, as 23 <code class="function">wimax_msg_send</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">wimax_dev_add</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