You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ad...@apache.org on 2016/05/20 07:36:09 UTC
[26/51] [partial] incubator-mynewt-site git commit: Changed landing
page, main banner, secondary banner, events, community,
added Quick start nav link, collapsed documentation hierarchy
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/eab28af6/os/core_os/mqueue/mqueue/index.html
----------------------------------------------------------------------
diff --git a/os/core_os/mqueue/mqueue/index.html b/os/core_os/mqueue/mqueue/index.html
index e0ac1ea..5fd902b 100644
--- a/os/core_os/mqueue/mqueue/index.html
+++ b/os/core_os/mqueue/mqueue/index.html
@@ -16,6 +16,7 @@
<link rel="stylesheet" href="../../../../css/highlight.css">
<link href="../../../../css/base.css" rel="stylesheet">
<link href="../../../../css/custom.css" rel="stylesheet">
+ <link href="../../../../css/v2.css" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Roboto:400,500,700,900,300,100' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link href="../../../../extra.css" rel="stylesheet">
@@ -43,11 +44,10 @@
<body class="toc">
- <div id="navbar" class="navbar navbar-default navbar-fixed-top" role="navigation">
- <div class="logo-container">
- <img src="/img/logo.svg">
- </div>
- <div class="container-fluid">
+
+
+<nav id="navbar" class="navbar navbar-inverse navbar-fixed-top" role="navigation">
+ <div class="container">
<!-- Collapsed navigation -->
<div class="navbar-header">
<!-- Expander button -->
@@ -64,75 +64,37 @@
<div class="navbar-collapse collapse">
<!-- Main navigation -->
<ul class="nav navbar-nav navbar-right">
- <li>
+ <li
+ class=""
+>
<a href="/">Home</a>
</li>
- <li>
- <a href="/about/">About</a>
+ <li
+ class="important"
+>
+ <a href="/quick-start/">Quick Start</a>
</li>
- <li class="dropdown">
- <a href="/documentation/" class="dropdown-toggle" data-toggle="dropdown">Docs <b class="caret"></b></a>
- <ul class="dropdown-menu">
-
-
-
-
-
-
- <li >
- <a href="../../../../documentation/">
- Overview
- </a>
- </li>
-
-
-
-
-
-
-
-
-
- <li class="active">
- <a href="../../../get_started/introduction/">
- Mynewt OS Manual
- </a>
- </li>
-
-
-
- <li >
- <a href="../../../../newt/newt_intro/">
- Newt Tool Manual
- </a>
- </li>
-
-
-
- <li >
- <a href="../../../../newtmgr/overview/">
- Newt Manager Manual
- </a>
- </li>
-
-
-
- <li >
- <a href="../../../../faq/how_to_edit_docs/">
- Appendix
- </a>
- </li>
-
-
- </ul>
+ <li
+ class=""
+>
+ <a href="/about/">About</a>
</li>
<li>
+ <a href="/os/introduction/">Documentation</a>
+ </li>
+ <li
+ class=""
+>
<a href="/download/">Download</a>
</li>
- <li>
+ <li
+ class=""
+>
<a href="/community/">Community</a>
</li>
- <li>
+ <li
+ class=""
+>
<a href="/events/">Events</a>
</li>
</ul>
@@ -142,27 +104,26 @@
</ul>
</div>
- # </div>
-</div>
+ </div>
+</nav>
- <div class="container-fluid">
+ <div class="container">
- <div class="row sm-extra-padding">
- <div id="docSidebar" class="col-md-3 bg-grey sidebar-container"><div class="bs-sidebar hidden-print" role="complementary">
- <div class="sidebar-top">
+ <div class="row">
+ <div class="col-md-3 v2-sidebar"><div class="hidden-print" role="complementary">
+ <div class="top">
<img class="hidden-xs hidden-sm logo-small" src="/img/logo.svg" alt="MyNewt" title="MyNewt">
- <div class="small" role="search">
- <form id ="rtd-search-form" class="wy-form" action="../../../../search.html" method="get">
+ <div role="search">
+ <form id="rtd-search-form" class="wy-form" action="../../../../search.html" method="get">
<div class="form-group">
- <input type="text" name="q" placeholder="Search documentation" />
- <button class="search-button" type="submit"><i class="fa fa-search"></i></button>
+ <input type="text" name="q" class="form-control" placeholder="Search documentation" />
</div>
</form>
</div>
</div>
- <ul class="nav bs-sidenav">
+ <ul class="toc-nav">
@@ -180,42 +141,29 @@
- <li><a href="
- ../../../get_started/introduction/
-">Mynewt OS Manual</a>
-
-
- <ul class="current-toc">
-
-
-
+ <li ><a href="../../../introduction/">Mynewt Documentation</a>
- <li>
- <a href="../../../get_started/introduction/">Introduction</a>
- </li>
-
+ <ul>
+
- <li ><a href="../../../get_started/get_started/">Quick Start</a></li>
+ <li ><a href="../../../get_started/get_started/">Basic Setup</a>
-
- </li>
+
+ </li>
-
-
- <li ><a href="../../../get_started/vocabulary/">Concepts</a></li>
-
-
- </li>
+ <li >
+ <a href="../../../get_started/vocabulary/">Concepts</a>
+ </li>
@@ -223,10 +171,10 @@
- <li ><a href="../../../tutorials/tutorials/">Tutorials</a></li>
+ <li ><a href="../../../tutorials/tutorials/">Tutorials</a>
-
- </li>
+
+ </li>
@@ -234,10 +182,10 @@
- <li ><a href="../../../os_user_guide/">OS User Guide</a></li>
+ <li ><a href="../../../os_user_guide/">OS User Guide</a>
-
- <ul class="current-toc">
+
+ <ul>
@@ -245,10 +193,10 @@
- <li ><a href="../../mynewt_os/">OS Core</a></li>
+ <li ><a href="../../mynewt_os/">OS Core</a>
-
- <ul class="current-toc">
+
+ <ul>
@@ -260,8 +208,8 @@
../../os_init/
">System-level Functions</a>
-
- </li>
+
+ </li>
@@ -269,10 +217,10 @@
- <li ><a href="../../context_switch/context_switch/">Scheduler</a></li>
+ <li ><a href="../../context_switch/context_switch/">Scheduler</a>
-
- </li>
+
+ </li>
@@ -280,10 +228,10 @@
- <li ><a href="../../time/os_time/">Time</a></li>
+ <li ><a href="../../time/os_time/">Time</a>
-
- </li>
+
+ </li>
@@ -291,10 +239,10 @@
- <li ><a href="../../task/task/">Tasks</a></li>
+ <li ><a href="../../task/task/">Tasks</a>
-
- </li>
+
+ </li>
@@ -302,10 +250,10 @@
- <li ><a href="../../event_queue/event_queue/">Event Queues</a></li>
+ <li ><a href="../../event_queue/event_queue/">Event Queues</a>
-
- </li>
+
+ </li>
@@ -313,10 +261,10 @@
- <li ><a href="../../semaphore/semaphore/">Semaphores</a></li>
+ <li ><a href="../../semaphore/semaphore/">Semaphores</a>
-
- </li>
+
+ </li>
@@ -324,10 +272,10 @@
- <li ><a href="../../mutex/mutex/">Mutexes</a></li>
+ <li ><a href="../../mutex/mutex/">Mutexes</a>
-
- </li>
+
+ </li>
@@ -335,10 +283,10 @@
- <li ><a href="../../memory_pool/memory_pool/">Memory Pools</a></li>
+ <li ><a href="../../memory_pool/memory_pool/">Memory Pools</a>
-
- </li>
+
+ </li>
@@ -346,10 +294,10 @@
- <li ><a href="../../heap/heap/">Heap</a></li>
+ <li ><a href="../../heap/heap/">Heap</a>
-
- </li>
+
+ </li>
@@ -364,17 +312,17 @@
">Memory Buffers</a>
-
- <ul class="current-toc">
+
+ <ul>
- <li ><a href="../../mbuf/mbuf/">Mbuf</a></li>
+ <li ><a href="../../mbuf/mbuf/">Mbuf</a>
-
- </li>
+
+ </li>
@@ -382,10 +330,10 @@
- <li ><a href="../../msys/msys/">Msys</a></li>
+ <li ><a href="../../msys/msys/">Msys</a>
-
- </li>
+
+ </li>
@@ -393,10 +341,10 @@
- <li class="active"><a href="./">MQueue</a></li>
+ <li class="active"><a href="./">MQueue</a>
-
- <ul class="current-toc">
+
+ <ul>
@@ -408,20 +356,20 @@
../os_mqueue_init/
">Functions</a>
-
- </li>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
@@ -429,10 +377,10 @@
- <li ><a href="../../sanity/sanity/">Sanity</a></li>
+ <li ><a href="../../sanity/sanity/">Sanity</a>
-
- </li>
+
+ </li>
@@ -440,16 +388,16 @@
- <li ><a href="../../callout/callout/">Callouts</a></li>
+ <li ><a href="../../callout/callout/">Callouts</a>
-
- </li>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
@@ -457,10 +405,10 @@
- <li ><a href="../../porting/port_os/">Porting to your Platform</a></li>
+ <li ><a href="../../porting/port_os/">Porting to your Platform</a>
-
- </li>
+
+ </li>
@@ -468,10 +416,10 @@
- <li ><a href="../../../modules/console/console/">Console</a></li>
+ <li ><a href="../../../modules/console/console/">Console</a>
-
- </li>
+
+ </li>
@@ -479,10 +427,10 @@
- <li ><a href="../../../modules/shell/shell/">Shell</a></li>
+ <li ><a href="../../../modules/shell/shell/">Shell</a>
-
- </li>
+
+ </li>
@@ -490,10 +438,10 @@
- <li ><a href="../../../modules/bootloader/bootloader/">Bootloader</a></li>
+ <li ><a href="../../../modules/bootloader/bootloader/">Bootloader</a>
-
- </li>
+
+ </li>
@@ -508,8 +456,8 @@
">File System</a>
-
- </li>
+
+ </li>
@@ -517,10 +465,10 @@
- <li ><a href="../../../modules/hal/hal/">Hardware Abstraction Layer</a></li>
+ <li ><a href="../../../modules/hal/hal/">Hardware Abstraction Layer</a>
-
- </li>
+
+ </li>
@@ -528,10 +476,10 @@
- <li ><a href="../../../modules/testutil/testutil/">Test Utilities</a></li>
+ <li ><a href="../../../modules/testutil/testutil/">Test Utilities</a>
-
- </li>
+
+ </li>
@@ -539,20 +487,18 @@
- <li ><a href="../../../modules/imgmgr/imgmgr/">Image Manager</a></li>
+ <li ><a href="../../../modules/imgmgr/imgmgr/">Image Manager</a>
-
- </li>
+
+ </li>
-
- <li>
+ <li >
<a href="../../../modules/baselibc/">Baselibc library</a>
</li>
-
@@ -560,10 +506,10 @@
- <li ><a href="../../../modules/elua/elua/">Embedded Lua</a></li>
+ <li ><a href="../../../modules/elua/elua/">Embedded Lua</a>
-
- </li>
+
+ </li>
@@ -571,10 +517,10 @@
- <li ><a href="../../../modules/json/json/">JSON</a></li>
+ <li ><a href="../../../modules/json/json/">JSON</a>
-
- </li>
+
+ </li>
@@ -582,10 +528,10 @@
- <li ><a href="../../../modules/stats/stats/">Stats</a></li>
+ <li ><a href="../../../modules/stats/stats/">Stats</a>
-
- </li>
+
+ </li>
@@ -593,16 +539,16 @@
- <li ><a href="../../../modules/logs/logs/">Logs</a></li>
+ <li ><a href="../../../modules/logs/logs/">Logs</a>
-
- </li>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
@@ -614,40 +560,36 @@
../../../../network/ble/ble_intro/
">BLE User Guide</a>
-
- </li>
+
+ </li>
- </ul>
-
- </li>
-
-
-
-
-
+
+
- <li><a href="
- ../../../../newt/newt_intro/
-">Newt Tool Manual</a>
+ <li ><a href="../../../../newt/newt_intro/">Newt Tool Guide</a>
-
- </li>
+
+ </li>
-
-
-
+
+
+
- <li><a href="
- ../../../../newtmgr/overview/
-">Newt Manager Manual</a>
+ <li ><a href="../../../../newtmgr/overview/">Newt Manager Guide</a>
-
- </li>
+
+ </li>
+
+
+
+ </ul>
+
+ </li>
@@ -659,8 +601,8 @@
../../../../faq/how_to_edit_docs/
">Appendix</a>
-
- </li>
+
+ </li>
@@ -671,45 +613,11 @@
<button class="show-sidebar">Docs Menu</button>
</div>
- <div class="col-md-offset-3 col-md-9 documentation-viewer" role="main">
+ <div class="col-md-9" role="main">
<div class="row doc-header">
- <div class="col-sm-6">
-
-<ul class="nav nav-pills">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <li class="active" role="presentation"><a href="../../../get_started/introduction/">Mynewt OS</a></li>
-
-
-
- <li role="presentation"><a href="../../../../newt/newt_intro/">Newt Tool</a></li>
-
-
-
- <li role="presentation"><a href="../../../../newtmgr/overview/">Newt Mgr</a></li>
-
-
-
-
-</ul>
- </div>
- <div class="col-sm-6">
+ <div class="col-sm-12">
<div role="navigation" aria-label="breadcrumbs navigation">
- <ul class="wy-breadcrumbs">
+ <ul class="wy-breadcrumbs pull-right">
<li><a href="/documentation/">Docs</a></li>
@@ -729,11 +637,11 @@
</div>
</div>
- <h1 id="mqueue">Mqueue<a class="headerlink" href="#mqueue" title="Permanent link">¶</a></h1>
+ <h1 id="mqueue">Mqueue</h1>
<p>Mqueue (Mbuf event queue) is a set of API built on top of the mbuf and event queue code. A typical networking stack operation is to put a packet on a queue and post an event to the task handling that queue. Mqueue was designed to provide a common API so that individual packages would not each have to create similar code.</p>
<p>The mqueue data structure consists of a queue head pointer (a "stailq" queue; a singly linked list with head structure having a pointer to the start and end of the list) and an os event structure. Packets (packet header mbufs) are added to the queue using the <em>omp_next</em> pointer in the <code>os_mbuf_pkthdr</code> structure of the mbuf. The event is used to post to the task an event of type OS_EVENT_T_MQUEUE_DATA. </p>
<p><br> </p>
-<h3 id="using-mqueue">Using Mqueue<a class="headerlink" href="#using-mqueue" title="Permanent link">¶</a></h3>
+<h3 id="using-mqueue">Using Mqueue</h3>
<p>The following code sample will demonstrate how to use an mqueue. This is a simple example where packets are put on a "receive queue" and a task processes that "receive queue" by incrementing the total number of packet received and then freeing the packet. Not shown in the code example is a call my_task_rx_data_func. Presumably, some other code will call this API. </p>
<p><br></p>
<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="color: #A90D91">uint32_t</span> <span style="color: #000000">pkts_rxd</span>;
@@ -795,7 +703,7 @@
</pre></div>
-<h3 id="data-structures">Data Structures<a class="headerlink" href="#data-structures" title="Permanent link">¶</a></h3>
+<h3 id="data-structures">Data Structures</h3>
<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="color: #A90D91">struct</span> <span style="color: #000000">os_mqueue</span> {
<span style="color: #000000">STAILQ_HEAD</span>(, <span style="color: #000000">os_mbuf_pkthdr</span>) <span style="color: #000000">mq_head</span>;
<span style="color: #A90D91">struct</span> <span style="color: #000000">os_event</span> <span style="color: #000000">mq_ev</span>;
@@ -804,7 +712,7 @@
<p><br></p>
-<h3 id="list-of-functions">List of Functions<a class="headerlink" href="#list-of-functions" title="Permanent link">¶</a></h3>
+<h3 id="list-of-functions">List of Functions</h3>
<p>The functions available in Mqueue are:</p>
<ul>
<li><a href="../os_mqueue_init/">os_mqueue_init</a></li>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/eab28af6/os/core_os/mqueue/os_mqueue_get/index.html
----------------------------------------------------------------------
diff --git a/os/core_os/mqueue/os_mqueue_get/index.html b/os/core_os/mqueue/os_mqueue_get/index.html
index 104eaaa..ae78497 100644
--- a/os/core_os/mqueue/os_mqueue_get/index.html
+++ b/os/core_os/mqueue/os_mqueue_get/index.html
@@ -16,6 +16,7 @@
<link rel="stylesheet" href="../../../../css/highlight.css">
<link href="../../../../css/base.css" rel="stylesheet">
<link href="../../../../css/custom.css" rel="stylesheet">
+ <link href="../../../../css/v2.css" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Roboto:400,500,700,900,300,100' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link href="../../../../extra.css" rel="stylesheet">
@@ -43,11 +44,10 @@
<body class="os_mqueue_get">
- <div id="navbar" class="navbar navbar-default navbar-fixed-top" role="navigation">
- <div class="logo-container">
- <img src="/img/logo.svg">
- </div>
- <div class="container-fluid">
+
+
+<nav id="navbar" class="navbar navbar-inverse navbar-fixed-top" role="navigation">
+ <div class="container">
<!-- Collapsed navigation -->
<div class="navbar-header">
<!-- Expander button -->
@@ -64,75 +64,37 @@
<div class="navbar-collapse collapse">
<!-- Main navigation -->
<ul class="nav navbar-nav navbar-right">
- <li>
+ <li
+ class=""
+>
<a href="/">Home</a>
</li>
- <li>
- <a href="/about/">About</a>
+ <li
+ class="important"
+>
+ <a href="/quick-start/">Quick Start</a>
</li>
- <li class="dropdown">
- <a href="/documentation/" class="dropdown-toggle" data-toggle="dropdown">Docs <b class="caret"></b></a>
- <ul class="dropdown-menu">
-
-
-
-
-
-
- <li >
- <a href="../../../../documentation/">
- Overview
- </a>
- </li>
-
-
-
-
-
-
-
-
-
- <li class="active">
- <a href="../../../get_started/introduction/">
- Mynewt OS Manual
- </a>
- </li>
-
-
-
- <li >
- <a href="../../../../newt/newt_intro/">
- Newt Tool Manual
- </a>
- </li>
-
-
-
- <li >
- <a href="../../../../newtmgr/overview/">
- Newt Manager Manual
- </a>
- </li>
-
-
-
- <li >
- <a href="../../../../faq/how_to_edit_docs/">
- Appendix
- </a>
- </li>
-
-
- </ul>
+ <li
+ class=""
+>
+ <a href="/about/">About</a>
</li>
<li>
+ <a href="/os/introduction/">Documentation</a>
+ </li>
+ <li
+ class=""
+>
<a href="/download/">Download</a>
</li>
- <li>
+ <li
+ class=""
+>
<a href="/community/">Community</a>
</li>
- <li>
+ <li
+ class=""
+>
<a href="/events/">Events</a>
</li>
</ul>
@@ -142,27 +104,26 @@
</ul>
</div>
- # </div>
-</div>
+ </div>
+</nav>
- <div class="container-fluid">
+ <div class="container">
- <div class="row sm-extra-padding">
- <div id="docSidebar" class="col-md-3 bg-grey sidebar-container"><div class="bs-sidebar hidden-print" role="complementary">
- <div class="sidebar-top">
+ <div class="row">
+ <div class="col-md-3 v2-sidebar"><div class="hidden-print" role="complementary">
+ <div class="top">
<img class="hidden-xs hidden-sm logo-small" src="/img/logo.svg" alt="MyNewt" title="MyNewt">
- <div class="small" role="search">
- <form id ="rtd-search-form" class="wy-form" action="../../../../search.html" method="get">
+ <div role="search">
+ <form id="rtd-search-form" class="wy-form" action="../../../../search.html" method="get">
<div class="form-group">
- <input type="text" name="q" placeholder="Search documentation" />
- <button class="search-button" type="submit"><i class="fa fa-search"></i></button>
+ <input type="text" name="q" class="form-control" placeholder="Search documentation" />
</div>
</form>
</div>
</div>
- <ul class="nav bs-sidenav">
+ <ul class="toc-nav">
@@ -180,42 +141,29 @@
- <li><a href="
- ../../../get_started/introduction/
-">Mynewt OS Manual</a>
+ <li ><a href="../../../introduction/">Mynewt Documentation</a>
-
- <ul class="current-toc">
-
-
-
-
- <li>
- <a href="../../../get_started/introduction/">Introduction</a>
- </li>
-
+ <ul>
+
- <li ><a href="../../../get_started/get_started/">Quick Start</a></li>
+ <li ><a href="../../../get_started/get_started/">Basic Setup</a>
-
- </li>
+
+ </li>
-
-
- <li ><a href="../../../get_started/vocabulary/">Concepts</a></li>
-
-
- </li>
+ <li >
+ <a href="../../../get_started/vocabulary/">Concepts</a>
+ </li>
@@ -223,10 +171,10 @@
- <li ><a href="../../../tutorials/tutorials/">Tutorials</a></li>
+ <li ><a href="../../../tutorials/tutorials/">Tutorials</a>
-
- </li>
+
+ </li>
@@ -234,10 +182,10 @@
- <li ><a href="../../../os_user_guide/">OS User Guide</a></li>
+ <li ><a href="../../../os_user_guide/">OS User Guide</a>
-
- <ul class="current-toc">
+
+ <ul>
@@ -245,10 +193,10 @@
- <li ><a href="../../mynewt_os/">OS Core</a></li>
+ <li ><a href="../../mynewt_os/">OS Core</a>
-
- <ul class="current-toc">
+
+ <ul>
@@ -260,8 +208,8 @@
../../os_init/
">System-level Functions</a>
-
- </li>
+
+ </li>
@@ -269,10 +217,10 @@
- <li ><a href="../../context_switch/context_switch/">Scheduler</a></li>
+ <li ><a href="../../context_switch/context_switch/">Scheduler</a>
-
- </li>
+
+ </li>
@@ -280,10 +228,10 @@
- <li ><a href="../../time/os_time/">Time</a></li>
+ <li ><a href="../../time/os_time/">Time</a>
-
- </li>
+
+ </li>
@@ -291,10 +239,10 @@
- <li ><a href="../../task/task/">Tasks</a></li>
+ <li ><a href="../../task/task/">Tasks</a>
-
- </li>
+
+ </li>
@@ -302,10 +250,10 @@
- <li ><a href="../../event_queue/event_queue/">Event Queues</a></li>
+ <li ><a href="../../event_queue/event_queue/">Event Queues</a>
-
- </li>
+
+ </li>
@@ -313,10 +261,10 @@
- <li ><a href="../../semaphore/semaphore/">Semaphores</a></li>
+ <li ><a href="../../semaphore/semaphore/">Semaphores</a>
-
- </li>
+
+ </li>
@@ -324,10 +272,10 @@
- <li ><a href="../../mutex/mutex/">Mutexes</a></li>
+ <li ><a href="../../mutex/mutex/">Mutexes</a>
-
- </li>
+
+ </li>
@@ -335,10 +283,10 @@
- <li ><a href="../../memory_pool/memory_pool/">Memory Pools</a></li>
+ <li ><a href="../../memory_pool/memory_pool/">Memory Pools</a>
-
- </li>
+
+ </li>
@@ -346,10 +294,10 @@
- <li ><a href="../../heap/heap/">Heap</a></li>
+ <li ><a href="../../heap/heap/">Heap</a>
-
- </li>
+
+ </li>
@@ -364,17 +312,17 @@
">Memory Buffers</a>
-
- <ul class="current-toc">
+
+ <ul>
- <li ><a href="../../mbuf/mbuf/">Mbuf</a></li>
+ <li ><a href="../../mbuf/mbuf/">Mbuf</a>
-
- </li>
+
+ </li>
@@ -382,10 +330,10 @@
- <li ><a href="../../msys/msys/">Msys</a></li>
+ <li ><a href="../../msys/msys/">Msys</a>
-
- </li>
+
+ </li>
@@ -393,10 +341,10 @@
- <li ><a href="../mqueue/">MQueue</a></li>
+ <li ><a href="../mqueue/">MQueue</a>
-
- <ul class="current-toc">
+
+ <ul>
@@ -408,54 +356,48 @@
../os_mqueue_init/
">Functions</a>
-
- <ul class="current-toc">
+
+ <ul>
-
- <li>
+ <li >
<a href="../os_mqueue_init/">os_mqueue_init</a>
</li>
-
-
<li class="active">
- os_mqueue_get
+ <a href="./">os_mqueue_get</a>
</li>
-
-
- <li>
+ <li >
<a href="../os_mqueue_put/">os_mqueue_put</a>
</li>
-
- </ul>
-
- </li>
+ </ul>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
@@ -463,10 +405,10 @@
- <li ><a href="../../sanity/sanity/">Sanity</a></li>
+ <li ><a href="../../sanity/sanity/">Sanity</a>
-
- </li>
+
+ </li>
@@ -474,16 +416,16 @@
- <li ><a href="../../callout/callout/">Callouts</a></li>
+ <li ><a href="../../callout/callout/">Callouts</a>
-
- </li>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
@@ -491,10 +433,10 @@
- <li ><a href="../../porting/port_os/">Porting to your Platform</a></li>
+ <li ><a href="../../porting/port_os/">Porting to your Platform</a>
-
- </li>
+
+ </li>
@@ -502,10 +444,10 @@
- <li ><a href="../../../modules/console/console/">Console</a></li>
+ <li ><a href="../../../modules/console/console/">Console</a>
-
- </li>
+
+ </li>
@@ -513,10 +455,10 @@
- <li ><a href="../../../modules/shell/shell/">Shell</a></li>
+ <li ><a href="../../../modules/shell/shell/">Shell</a>
-
- </li>
+
+ </li>
@@ -524,10 +466,10 @@
- <li ><a href="../../../modules/bootloader/bootloader/">Bootloader</a></li>
+ <li ><a href="../../../modules/bootloader/bootloader/">Bootloader</a>
-
- </li>
+
+ </li>
@@ -542,8 +484,8 @@
">File System</a>
-
- </li>
+
+ </li>
@@ -551,10 +493,10 @@
- <li ><a href="../../../modules/hal/hal/">Hardware Abstraction Layer</a></li>
+ <li ><a href="../../../modules/hal/hal/">Hardware Abstraction Layer</a>
-
- </li>
+
+ </li>
@@ -562,10 +504,10 @@
- <li ><a href="../../../modules/testutil/testutil/">Test Utilities</a></li>
+ <li ><a href="../../../modules/testutil/testutil/">Test Utilities</a>
-
- </li>
+
+ </li>
@@ -573,20 +515,18 @@
- <li ><a href="../../../modules/imgmgr/imgmgr/">Image Manager</a></li>
+ <li ><a href="../../../modules/imgmgr/imgmgr/">Image Manager</a>
-
- </li>
+
+ </li>
-
- <li>
+ <li >
<a href="../../../modules/baselibc/">Baselibc library</a>
</li>
-
@@ -594,10 +534,10 @@
- <li ><a href="../../../modules/elua/elua/">Embedded Lua</a></li>
+ <li ><a href="../../../modules/elua/elua/">Embedded Lua</a>
-
- </li>
+
+ </li>
@@ -605,10 +545,10 @@
- <li ><a href="../../../modules/json/json/">JSON</a></li>
+ <li ><a href="../../../modules/json/json/">JSON</a>
-
- </li>
+
+ </li>
@@ -616,10 +556,10 @@
- <li ><a href="../../../modules/stats/stats/">Stats</a></li>
+ <li ><a href="../../../modules/stats/stats/">Stats</a>
-
- </li>
+
+ </li>
@@ -627,16 +567,16 @@
- <li ><a href="../../../modules/logs/logs/">Logs</a></li>
+ <li ><a href="../../../modules/logs/logs/">Logs</a>
-
- </li>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
@@ -648,40 +588,36 @@
../../../../network/ble/ble_intro/
">BLE User Guide</a>
-
- </li>
+
+ </li>
- </ul>
-
- </li>
-
-
-
-
-
+
+
- <li><a href="
- ../../../../newt/newt_intro/
-">Newt Tool Manual</a>
+ <li ><a href="../../../../newt/newt_intro/">Newt Tool Guide</a>
-
- </li>
+
+ </li>
-
-
-
+
+
+
- <li><a href="
- ../../../../newtmgr/overview/
-">Newt Manager Manual</a>
+ <li ><a href="../../../../newtmgr/overview/">Newt Manager Guide</a>
-
- </li>
+
+ </li>
+
+
+
+ </ul>
+
+ </li>
@@ -693,8 +629,8 @@
../../../../faq/how_to_edit_docs/
">Appendix</a>
-
- </li>
+
+ </li>
@@ -705,45 +641,11 @@
<button class="show-sidebar">Docs Menu</button>
</div>
- <div class="col-md-offset-3 col-md-9 documentation-viewer" role="main">
+ <div class="col-md-9" role="main">
<div class="row doc-header">
- <div class="col-sm-6">
-
-<ul class="nav nav-pills">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <li class="active" role="presentation"><a href="../../../get_started/introduction/">Mynewt OS</a></li>
-
-
-
- <li role="presentation"><a href="../../../../newt/newt_intro/">Newt Tool</a></li>
-
-
-
- <li role="presentation"><a href="../../../../newtmgr/overview/">Newt Mgr</a></li>
-
-
-
-
-</ul>
- </div>
- <div class="col-sm-6">
+ <div class="col-sm-12">
<div role="navigation" aria-label="breadcrumbs navigation">
- <ul class="wy-breadcrumbs">
+ <ul class="wy-breadcrumbs pull-right">
<li><a href="/documentation/">Docs</a></li>
@@ -765,14 +667,14 @@
</div>
</div>
- <h2 id="os_mqueue_get"><font color="#F2853F" style="font-size:24pt">os_mqueue_get</font><a class="headerlink" href="#os_mqueue_get" title="Permanent link">¶</a></h2>
+ <h2 id="os_mqueue_get"><font color="#F2853F" style="font-size:24pt">os_mqueue_get</font></h2>
<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="color: #A90D91">struct</span> <span style="color: #000000">os_mbuf</span> <span style="color: #000000">*os_mqueue_get</span>(<span style="color: #A90D91">struct</span> <span style="color: #000000">os_mqueue</span> <span style="color: #000000">*mq</span>)
</pre></div>
<p>Retrieves a packet off an Mqueue. Returns a pointer to the mbuf at the head of the mbuf chain. NULL if no packets are on the queue.</p>
<p><br></p>
-<h4 id="arguments">Arguments<a class="headerlink" href="#arguments" title="Permanent link">¶</a></h4>
+<h4 id="arguments">Arguments</h4>
<table>
<thead>
<tr>
@@ -788,10 +690,10 @@
</tbody>
</table>
<p><br></p>
-<h4 id="returned-values">Returned values<a class="headerlink" href="#returned-values" title="Permanent link">¶</a></h4>
+<h4 id="returned-values">Returned values</h4>
<p>The packet at the head of the queue or NULL if no packets are on the queue.</p>
<p><br></p>
-<h4 id="example">Example<a class="headerlink" href="#example" title="Permanent link">¶</a></h4>
+<h4 id="example">Example</h4>
<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="color: #A90D91">uint32_t</span> <span style="color: #000000">pkts_rxd</span>;
<span style="color: #A90D91">struct</span> <span style="color: #000000">os_mqueue</span> <span style="color: #000000">rxpkt_q</span>;
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/eab28af6/os/core_os/mqueue/os_mqueue_init/index.html
----------------------------------------------------------------------
diff --git a/os/core_os/mqueue/os_mqueue_init/index.html b/os/core_os/mqueue/os_mqueue_init/index.html
index 763929f..9b5dbf7 100644
--- a/os/core_os/mqueue/os_mqueue_init/index.html
+++ b/os/core_os/mqueue/os_mqueue_init/index.html
@@ -16,6 +16,7 @@
<link rel="stylesheet" href="../../../../css/highlight.css">
<link href="../../../../css/base.css" rel="stylesheet">
<link href="../../../../css/custom.css" rel="stylesheet">
+ <link href="../../../../css/v2.css" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Roboto:400,500,700,900,300,100' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link href="../../../../extra.css" rel="stylesheet">
@@ -43,11 +44,10 @@
<body class="os_mqueue_init">
- <div id="navbar" class="navbar navbar-default navbar-fixed-top" role="navigation">
- <div class="logo-container">
- <img src="/img/logo.svg">
- </div>
- <div class="container-fluid">
+
+
+<nav id="navbar" class="navbar navbar-inverse navbar-fixed-top" role="navigation">
+ <div class="container">
<!-- Collapsed navigation -->
<div class="navbar-header">
<!-- Expander button -->
@@ -64,75 +64,37 @@
<div class="navbar-collapse collapse">
<!-- Main navigation -->
<ul class="nav navbar-nav navbar-right">
- <li>
+ <li
+ class=""
+>
<a href="/">Home</a>
</li>
- <li>
- <a href="/about/">About</a>
+ <li
+ class="important"
+>
+ <a href="/quick-start/">Quick Start</a>
</li>
- <li class="dropdown">
- <a href="/documentation/" class="dropdown-toggle" data-toggle="dropdown">Docs <b class="caret"></b></a>
- <ul class="dropdown-menu">
-
-
-
-
-
-
- <li >
- <a href="../../../../documentation/">
- Overview
- </a>
- </li>
-
-
-
-
-
-
-
-
-
- <li class="active">
- <a href="../../../get_started/introduction/">
- Mynewt OS Manual
- </a>
- </li>
-
-
-
- <li >
- <a href="../../../../newt/newt_intro/">
- Newt Tool Manual
- </a>
- </li>
-
-
-
- <li >
- <a href="../../../../newtmgr/overview/">
- Newt Manager Manual
- </a>
- </li>
-
-
-
- <li >
- <a href="../../../../faq/how_to_edit_docs/">
- Appendix
- </a>
- </li>
-
-
- </ul>
+ <li
+ class=""
+>
+ <a href="/about/">About</a>
</li>
<li>
+ <a href="/os/introduction/">Documentation</a>
+ </li>
+ <li
+ class=""
+>
<a href="/download/">Download</a>
</li>
- <li>
+ <li
+ class=""
+>
<a href="/community/">Community</a>
</li>
- <li>
+ <li
+ class=""
+>
<a href="/events/">Events</a>
</li>
</ul>
@@ -142,27 +104,26 @@
</ul>
</div>
- # </div>
-</div>
+ </div>
+</nav>
- <div class="container-fluid">
+ <div class="container">
- <div class="row sm-extra-padding">
- <div id="docSidebar" class="col-md-3 bg-grey sidebar-container"><div class="bs-sidebar hidden-print" role="complementary">
- <div class="sidebar-top">
+ <div class="row">
+ <div class="col-md-3 v2-sidebar"><div class="hidden-print" role="complementary">
+ <div class="top">
<img class="hidden-xs hidden-sm logo-small" src="/img/logo.svg" alt="MyNewt" title="MyNewt">
- <div class="small" role="search">
- <form id ="rtd-search-form" class="wy-form" action="../../../../search.html" method="get">
+ <div role="search">
+ <form id="rtd-search-form" class="wy-form" action="../../../../search.html" method="get">
<div class="form-group">
- <input type="text" name="q" placeholder="Search documentation" />
- <button class="search-button" type="submit"><i class="fa fa-search"></i></button>
+ <input type="text" name="q" class="form-control" placeholder="Search documentation" />
</div>
</form>
</div>
</div>
- <ul class="nav bs-sidenav">
+ <ul class="toc-nav">
@@ -180,42 +141,29 @@
- <li><a href="
- ../../../get_started/introduction/
-">Mynewt OS Manual</a>
+ <li ><a href="../../../introduction/">Mynewt Documentation</a>
-
- <ul class="current-toc">
-
-
-
-
- <li>
- <a href="../../../get_started/introduction/">Introduction</a>
- </li>
-
+ <ul>
+
- <li ><a href="../../../get_started/get_started/">Quick Start</a></li>
+ <li ><a href="../../../get_started/get_started/">Basic Setup</a>
-
- </li>
+
+ </li>
-
-
- <li ><a href="../../../get_started/vocabulary/">Concepts</a></li>
-
-
- </li>
+ <li >
+ <a href="../../../get_started/vocabulary/">Concepts</a>
+ </li>
@@ -223,10 +171,10 @@
- <li ><a href="../../../tutorials/tutorials/">Tutorials</a></li>
+ <li ><a href="../../../tutorials/tutorials/">Tutorials</a>
-
- </li>
+
+ </li>
@@ -234,10 +182,10 @@
- <li ><a href="../../../os_user_guide/">OS User Guide</a></li>
+ <li ><a href="../../../os_user_guide/">OS User Guide</a>
-
- <ul class="current-toc">
+
+ <ul>
@@ -245,10 +193,10 @@
- <li ><a href="../../mynewt_os/">OS Core</a></li>
+ <li ><a href="../../mynewt_os/">OS Core</a>
-
- <ul class="current-toc">
+
+ <ul>
@@ -260,8 +208,8 @@
../../os_init/
">System-level Functions</a>
-
- </li>
+
+ </li>
@@ -269,10 +217,10 @@
- <li ><a href="../../context_switch/context_switch/">Scheduler</a></li>
+ <li ><a href="../../context_switch/context_switch/">Scheduler</a>
-
- </li>
+
+ </li>
@@ -280,10 +228,10 @@
- <li ><a href="../../time/os_time/">Time</a></li>
+ <li ><a href="../../time/os_time/">Time</a>
-
- </li>
+
+ </li>
@@ -291,10 +239,10 @@
- <li ><a href="../../task/task/">Tasks</a></li>
+ <li ><a href="../../task/task/">Tasks</a>
-
- </li>
+
+ </li>
@@ -302,10 +250,10 @@
- <li ><a href="../../event_queue/event_queue/">Event Queues</a></li>
+ <li ><a href="../../event_queue/event_queue/">Event Queues</a>
-
- </li>
+
+ </li>
@@ -313,10 +261,10 @@
- <li ><a href="../../semaphore/semaphore/">Semaphores</a></li>
+ <li ><a href="../../semaphore/semaphore/">Semaphores</a>
-
- </li>
+
+ </li>
@@ -324,10 +272,10 @@
- <li ><a href="../../mutex/mutex/">Mutexes</a></li>
+ <li ><a href="../../mutex/mutex/">Mutexes</a>
-
- </li>
+
+ </li>
@@ -335,10 +283,10 @@
- <li ><a href="../../memory_pool/memory_pool/">Memory Pools</a></li>
+ <li ><a href="../../memory_pool/memory_pool/">Memory Pools</a>
-
- </li>
+
+ </li>
@@ -346,10 +294,10 @@
- <li ><a href="../../heap/heap/">Heap</a></li>
+ <li ><a href="../../heap/heap/">Heap</a>
-
- </li>
+
+ </li>
@@ -364,17 +312,17 @@
">Memory Buffers</a>
-
- <ul class="current-toc">
+
+ <ul>
- <li ><a href="../../mbuf/mbuf/">Mbuf</a></li>
+ <li ><a href="../../mbuf/mbuf/">Mbuf</a>
-
- </li>
+
+ </li>
@@ -382,10 +330,10 @@
- <li ><a href="../../msys/msys/">Msys</a></li>
+ <li ><a href="../../msys/msys/">Msys</a>
-
- </li>
+
+ </li>
@@ -393,10 +341,10 @@
- <li ><a href="../mqueue/">MQueue</a></li>
+ <li ><a href="../mqueue/">MQueue</a>
-
- <ul class="current-toc">
+
+ <ul>
@@ -408,54 +356,48 @@
./
">Functions</a>
-
- <ul class="current-toc">
+
+ <ul>
-
<li class="active">
- os_mqueue_init
+ <a href="./">os_mqueue_init</a>
</li>
-
-
- <li>
+ <li >
<a href="../os_mqueue_get/">os_mqueue_get</a>
</li>
-
-
- <li>
+ <li >
<a href="../os_mqueue_put/">os_mqueue_put</a>
</li>
-
- </ul>
-
- </li>
+ </ul>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
@@ -463,10 +405,10 @@
- <li ><a href="../../sanity/sanity/">Sanity</a></li>
+ <li ><a href="../../sanity/sanity/">Sanity</a>
-
- </li>
+
+ </li>
@@ -474,16 +416,16 @@
- <li ><a href="../../callout/callout/">Callouts</a></li>
+ <li ><a href="../../callout/callout/">Callouts</a>
-
- </li>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
@@ -491,10 +433,10 @@
- <li ><a href="../../porting/port_os/">Porting to your Platform</a></li>
+ <li ><a href="../../porting/port_os/">Porting to your Platform</a>
-
- </li>
+
+ </li>
@@ -502,10 +444,10 @@
- <li ><a href="../../../modules/console/console/">Console</a></li>
+ <li ><a href="../../../modules/console/console/">Console</a>
-
- </li>
+
+ </li>
@@ -513,10 +455,10 @@
- <li ><a href="../../../modules/shell/shell/">Shell</a></li>
+ <li ><a href="../../../modules/shell/shell/">Shell</a>
-
- </li>
+
+ </li>
@@ -524,10 +466,10 @@
- <li ><a href="../../../modules/bootloader/bootloader/">Bootloader</a></li>
+ <li ><a href="../../../modules/bootloader/bootloader/">Bootloader</a>
-
- </li>
+
+ </li>
@@ -542,8 +484,8 @@
">File System</a>
-
- </li>
+
+ </li>
@@ -551,10 +493,10 @@
- <li ><a href="../../../modules/hal/hal/">Hardware Abstraction Layer</a></li>
+ <li ><a href="../../../modules/hal/hal/">Hardware Abstraction Layer</a>
-
- </li>
+
+ </li>
@@ -562,10 +504,10 @@
- <li ><a href="../../../modules/testutil/testutil/">Test Utilities</a></li>
+ <li ><a href="../../../modules/testutil/testutil/">Test Utilities</a>
-
- </li>
+
+ </li>
@@ -573,20 +515,18 @@
- <li ><a href="../../../modules/imgmgr/imgmgr/">Image Manager</a></li>
+ <li ><a href="../../../modules/imgmgr/imgmgr/">Image Manager</a>
-
- </li>
+
+ </li>
-
- <li>
+ <li >
<a href="../../../modules/baselibc/">Baselibc library</a>
</li>
-
@@ -594,10 +534,10 @@
- <li ><a href="../../../modules/elua/elua/">Embedded Lua</a></li>
+ <li ><a href="../../../modules/elua/elua/">Embedded Lua</a>
-
- </li>
+
+ </li>
@@ -605,10 +545,10 @@
- <li ><a href="../../../modules/json/json/">JSON</a></li>
+ <li ><a href="../../../modules/json/json/">JSON</a>
-
- </li>
+
+ </li>
@@ -616,10 +556,10 @@
- <li ><a href="../../../modules/stats/stats/">Stats</a></li>
+ <li ><a href="../../../modules/stats/stats/">Stats</a>
-
- </li>
+
+ </li>
@@ -627,16 +567,16 @@
- <li ><a href="../../../modules/logs/logs/">Logs</a></li>
+ <li ><a href="../../../modules/logs/logs/">Logs</a>
-
- </li>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
@@ -648,40 +588,36 @@
../../../../network/ble/ble_intro/
">BLE User Guide</a>
-
- </li>
+
+ </li>
- </ul>
-
- </li>
-
-
-
-
-
+
+
- <li><a href="
- ../../../../newt/newt_intro/
-">Newt Tool Manual</a>
+ <li ><a href="../../../../newt/newt_intro/">Newt Tool Guide</a>
-
- </li>
+
+ </li>
-
-
-
+
+
+
- <li><a href="
- ../../../../newtmgr/overview/
-">Newt Manager Manual</a>
+ <li ><a href="../../../../newtmgr/overview/">Newt Manager Guide</a>
-
- </li>
+
+ </li>
+
+
+
+ </ul>
+
+ </li>
@@ -693,8 +629,8 @@
../../../../faq/how_to_edit_docs/
">Appendix</a>
-
- </li>
+
+ </li>
@@ -705,45 +641,11 @@
<button class="show-sidebar">Docs Menu</button>
</div>
- <div class="col-md-offset-3 col-md-9 documentation-viewer" role="main">
+ <div class="col-md-9" role="main">
<div class="row doc-header">
- <div class="col-sm-6">
-
-<ul class="nav nav-pills">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <li class="active" role="presentation"><a href="../../../get_started/introduction/">Mynewt OS</a></li>
-
-
-
- <li role="presentation"><a href="../../../../newt/newt_intro/">Newt Tool</a></li>
-
-
-
- <li role="presentation"><a href="../../../../newtmgr/overview/">Newt Mgr</a></li>
-
-
-
-
-</ul>
- </div>
- <div class="col-sm-6">
+ <div class="col-sm-12">
<div role="navigation" aria-label="breadcrumbs navigation">
- <ul class="wy-breadcrumbs">
+ <ul class="wy-breadcrumbs pull-right">
<li><a href="/documentation/">Docs</a></li>
@@ -765,14 +667,14 @@
</div>
</div>
- <h2 id="os_mqueue_init"><font color="#F2853F" style="font-size:24pt">os_mqueue_init</font><a class="headerlink" href="#os_mqueue_init" title="Permanent link">¶</a></h2>
+ <h2 id="os_mqueue_init"><font color="#F2853F" style="font-size:24pt">os_mqueue_init</font></h2>
<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="color: #A90D91">int</span> <span style="color: #000000">os_mqueue_init</span>(<span style="color: #A90D91">struct</span> <span style="color: #000000">os_mqueue</span> <span style="color: #000000">*mq</span>, <span style="color: #A90D91">void</span> <span style="color: #000000">*arg</span>)
</pre></div>
<p>Initializes an queue. Sets the event argument in the os event of the mqueue to <em>arg</em>. Sets type of event to OS_EVENT_T_MQUEUE_DATA.</p>
<p><br></p>
-<h4 id="arguments">Arguments<a class="headerlink" href="#arguments" title="Permanent link">¶</a></h4>
+<h4 id="arguments">Arguments</h4>
<table>
<thead>
<tr>
@@ -792,10 +694,10 @@
</tbody>
</table>
<p><br></p>
-<h4 id="returned-values">Returned values<a class="headerlink" href="#returned-values" title="Permanent link">¶</a></h4>
+<h4 id="returned-values">Returned values</h4>
<p>0: success. All other values indicate an error</p>
<p><br></p>
-<h4 id="example">Example<a class="headerlink" href="#example" title="Permanent link">¶</a></h4>
+<h4 id="example">Example</h4>
<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="color: #177500">/* Declare mqueue */</span>
<span style="color: #A90D91">struct</span> <span style="color: #000000">os_mqueue</span> <span style="color: #000000">rxpkt_q</span>;
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/eab28af6/os/core_os/mqueue/os_mqueue_put/index.html
----------------------------------------------------------------------
diff --git a/os/core_os/mqueue/os_mqueue_put/index.html b/os/core_os/mqueue/os_mqueue_put/index.html
index 2773382..566d11d 100644
--- a/os/core_os/mqueue/os_mqueue_put/index.html
+++ b/os/core_os/mqueue/os_mqueue_put/index.html
@@ -16,6 +16,7 @@
<link rel="stylesheet" href="../../../../css/highlight.css">
<link href="../../../../css/base.css" rel="stylesheet">
<link href="../../../../css/custom.css" rel="stylesheet">
+ <link href="../../../../css/v2.css" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Roboto:400,500,700,900,300,100' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link href="../../../../extra.css" rel="stylesheet">
@@ -43,11 +44,10 @@
<body class="os_mqueue_put">
- <div id="navbar" class="navbar navbar-default navbar-fixed-top" role="navigation">
- <div class="logo-container">
- <img src="/img/logo.svg">
- </div>
- <div class="container-fluid">
+
+
+<nav id="navbar" class="navbar navbar-inverse navbar-fixed-top" role="navigation">
+ <div class="container">
<!-- Collapsed navigation -->
<div class="navbar-header">
<!-- Expander button -->
@@ -64,75 +64,37 @@
<div class="navbar-collapse collapse">
<!-- Main navigation -->
<ul class="nav navbar-nav navbar-right">
- <li>
+ <li
+ class=""
+>
<a href="/">Home</a>
</li>
- <li>
- <a href="/about/">About</a>
+ <li
+ class="important"
+>
+ <a href="/quick-start/">Quick Start</a>
</li>
- <li class="dropdown">
- <a href="/documentation/" class="dropdown-toggle" data-toggle="dropdown">Docs <b class="caret"></b></a>
- <ul class="dropdown-menu">
-
-
-
-
-
-
- <li >
- <a href="../../../../documentation/">
- Overview
- </a>
- </li>
-
-
-
-
-
-
-
-
-
- <li class="active">
- <a href="../../../get_started/introduction/">
- Mynewt OS Manual
- </a>
- </li>
-
-
-
- <li >
- <a href="../../../../newt/newt_intro/">
- Newt Tool Manual
- </a>
- </li>
-
-
-
- <li >
- <a href="../../../../newtmgr/overview/">
- Newt Manager Manual
- </a>
- </li>
-
-
-
- <li >
- <a href="../../../../faq/how_to_edit_docs/">
- Appendix
- </a>
- </li>
-
-
- </ul>
+ <li
+ class=""
+>
+ <a href="/about/">About</a>
</li>
<li>
+ <a href="/os/introduction/">Documentation</a>
+ </li>
+ <li
+ class=""
+>
<a href="/download/">Download</a>
</li>
- <li>
+ <li
+ class=""
+>
<a href="/community/">Community</a>
</li>
- <li>
+ <li
+ class=""
+>
<a href="/events/">Events</a>
</li>
</ul>
@@ -142,27 +104,26 @@
</ul>
</div>
- # </div>
-</div>
+ </div>
+</nav>
- <div class="container-fluid">
+ <div class="container">
- <div class="row sm-extra-padding">
- <div id="docSidebar" class="col-md-3 bg-grey sidebar-container"><div class="bs-sidebar hidden-print" role="complementary">
- <div class="sidebar-top">
+ <div class="row">
+ <div class="col-md-3 v2-sidebar"><div class="hidden-print" role="complementary">
+ <div class="top">
<img class="hidden-xs hidden-sm logo-small" src="/img/logo.svg" alt="MyNewt" title="MyNewt">
- <div class="small" role="search">
- <form id ="rtd-search-form" class="wy-form" action="../../../../search.html" method="get">
+ <div role="search">
+ <form id="rtd-search-form" class="wy-form" action="../../../../search.html" method="get">
<div class="form-group">
- <input type="text" name="q" placeholder="Search documentation" />
- <button class="search-button" type="submit"><i class="fa fa-search"></i></button>
+ <input type="text" name="q" class="form-control" placeholder="Search documentation" />
</div>
</form>
</div>
</div>
- <ul class="nav bs-sidenav">
+ <ul class="toc-nav">
@@ -180,42 +141,29 @@
- <li><a href="
- ../../../get_started/introduction/
-">Mynewt OS Manual</a>
+ <li ><a href="../../../introduction/">Mynewt Documentation</a>
-
- <ul class="current-toc">
-
-
-
-
- <li>
- <a href="../../../get_started/introduction/">Introduction</a>
- </li>
-
+ <ul>
+
- <li ><a href="../../../get_started/get_started/">Quick Start</a></li>
+ <li ><a href="../../../get_started/get_started/">Basic Setup</a>
-
- </li>
+
+ </li>
-
-
- <li ><a href="../../../get_started/vocabulary/">Concepts</a></li>
-
-
- </li>
+ <li >
+ <a href="../../../get_started/vocabulary/">Concepts</a>
+ </li>
@@ -223,10 +171,10 @@
- <li ><a href="../../../tutorials/tutorials/">Tutorials</a></li>
+ <li ><a href="../../../tutorials/tutorials/">Tutorials</a>
-
- </li>
+
+ </li>
@@ -234,10 +182,10 @@
- <li ><a href="../../../os_user_guide/">OS User Guide</a></li>
+ <li ><a href="../../../os_user_guide/">OS User Guide</a>
-
- <ul class="current-toc">
+
+ <ul>
@@ -245,10 +193,10 @@
- <li ><a href="../../mynewt_os/">OS Core</a></li>
+ <li ><a href="../../mynewt_os/">OS Core</a>
-
- <ul class="current-toc">
+
+ <ul>
@@ -260,8 +208,8 @@
../../os_init/
">System-level Functions</a>
-
- </li>
+
+ </li>
@@ -269,10 +217,10 @@
- <li ><a href="../../context_switch/context_switch/">Scheduler</a></li>
+ <li ><a href="../../context_switch/context_switch/">Scheduler</a>
-
- </li>
+
+ </li>
@@ -280,10 +228,10 @@
- <li ><a href="../../time/os_time/">Time</a></li>
+ <li ><a href="../../time/os_time/">Time</a>
-
- </li>
+
+ </li>
@@ -291,10 +239,10 @@
- <li ><a href="../../task/task/">Tasks</a></li>
+ <li ><a href="../../task/task/">Tasks</a>
-
- </li>
+
+ </li>
@@ -302,10 +250,10 @@
- <li ><a href="../../event_queue/event_queue/">Event Queues</a></li>
+ <li ><a href="../../event_queue/event_queue/">Event Queues</a>
-
- </li>
+
+ </li>
@@ -313,10 +261,10 @@
- <li ><a href="../../semaphore/semaphore/">Semaphores</a></li>
+ <li ><a href="../../semaphore/semaphore/">Semaphores</a>
-
- </li>
+
+ </li>
@@ -324,10 +272,10 @@
- <li ><a href="../../mutex/mutex/">Mutexes</a></li>
+ <li ><a href="../../mutex/mutex/">Mutexes</a>
-
- </li>
+
+ </li>
@@ -335,10 +283,10 @@
- <li ><a href="../../memory_pool/memory_pool/">Memory Pools</a></li>
+ <li ><a href="../../memory_pool/memory_pool/">Memory Pools</a>
-
- </li>
+
+ </li>
@@ -346,10 +294,10 @@
- <li ><a href="../../heap/heap/">Heap</a></li>
+ <li ><a href="../../heap/heap/">Heap</a>
-
- </li>
+
+ </li>
@@ -364,17 +312,17 @@
">Memory Buffers</a>
-
- <ul class="current-toc">
+
+ <ul>
- <li ><a href="../../mbuf/mbuf/">Mbuf</a></li>
+ <li ><a href="../../mbuf/mbuf/">Mbuf</a>
-
- </li>
+
+ </li>
@@ -382,10 +330,10 @@
- <li ><a href="../../msys/msys/">Msys</a></li>
+ <li ><a href="../../msys/msys/">Msys</a>
-
- </li>
+
+ </li>
@@ -393,10 +341,10 @@
- <li ><a href="../mqueue/">MQueue</a></li>
+ <li ><a href="../mqueue/">MQueue</a>
-
- <ul class="current-toc">
+
+ <ul>
@@ -408,54 +356,48 @@
../os_mqueue_init/
">Functions</a>
-
- <ul class="current-toc">
+
+ <ul>
-
- <li>
+ <li >
<a href="../os_mqueue_init/">os_mqueue_init</a>
</li>
-
-
- <li>
+ <li >
<a href="../os_mqueue_get/">os_mqueue_get</a>
</li>
-
-
<li class="active">
- os_mqueue_put
+ <a href="./">os_mqueue_put</a>
</li>
-
- </ul>
-
- </li>
+ </ul>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
@@ -463,10 +405,10 @@
- <li ><a href="../../sanity/sanity/">Sanity</a></li>
+ <li ><a href="../../sanity/sanity/">Sanity</a>
-
- </li>
+
+ </li>
@@ -474,16 +416,16 @@
- <li ><a href="../../callout/callout/">Callouts</a></li>
+ <li ><a href="../../callout/callout/">Callouts</a>
-
- </li>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
@@ -491,10 +433,10 @@
- <li ><a href="../../porting/port_os/">Porting to your Platform</a></li>
+ <li ><a href="../../porting/port_os/">Porting to your Platform</a>
-
- </li>
+
+ </li>
@@ -502,10 +444,10 @@
- <li ><a href="../../../modules/console/console/">Console</a></li>
+ <li ><a href="../../../modules/console/console/">Console</a>
-
- </li>
+
+ </li>
@@ -513,10 +455,10 @@
- <li ><a href="../../../modules/shell/shell/">Shell</a></li>
+ <li ><a href="../../../modules/shell/shell/">Shell</a>
-
- </li>
+
+ </li>
@@ -524,10 +466,10 @@
- <li ><a href="../../../modules/bootloader/bootloader/">Bootloader</a></li>
+ <li ><a href="../../../modules/bootloader/bootloader/">Bootloader</a>
-
- </li>
+
+ </li>
@@ -542,8 +484,8 @@
">File System</a>
-
- </li>
+
+ </li>
@@ -551,10 +493,10 @@
- <li ><a href="../../../modules/hal/hal/">Hardware Abstraction Layer</a></li>
+ <li ><a href="../../../modules/hal/hal/">Hardware Abstraction Layer</a>
-
- </li>
+
+ </li>
@@ -562,10 +504,10 @@
- <li ><a href="../../../modules/testutil/testutil/">Test Utilities</a></li>
+ <li ><a href="../../../modules/testutil/testutil/">Test Utilities</a>
-
- </li>
+
+ </li>
@@ -573,20 +515,18 @@
- <li ><a href="../../../modules/imgmgr/imgmgr/">Image Manager</a></li>
+ <li ><a href="../../../modules/imgmgr/imgmgr/">Image Manager</a>
-
- </li>
+
+ </li>
-
- <li>
+ <li >
<a href="../../../modules/baselibc/">Baselibc library</a>
</li>
-
@@ -594,10 +534,10 @@
- <li ><a href="../../../modules/elua/elua/">Embedded Lua</a></li>
+ <li ><a href="../../../modules/elua/elua/">Embedded Lua</a>
-
- </li>
+
+ </li>
@@ -605,10 +545,10 @@
- <li ><a href="../../../modules/json/json/">JSON</a></li>
+ <li ><a href="../../../modules/json/json/">JSON</a>
-
- </li>
+
+ </li>
@@ -616,10 +556,10 @@
- <li ><a href="../../../modules/stats/stats/">Stats</a></li>
+ <li ><a href="../../../modules/stats/stats/">Stats</a>
-
- </li>
+
+ </li>
@@ -627,16 +567,16 @@
- <li ><a href="../../../modules/logs/logs/">Logs</a></li>
+ <li ><a href="../../../modules/logs/logs/">Logs</a>
-
- </li>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
@@ -648,40 +588,36 @@
../../../../network/ble/ble_intro/
">BLE User Guide</a>
-
- </li>
+
+ </li>
- </ul>
-
- </li>
-
-
-
-
-
+
+
- <li><a href="
- ../../../../newt/newt_intro/
-">Newt Tool Manual</a>
+ <li ><a href="../../../../newt/newt_intro/">Newt Tool Guide</a>
-
- </li>
+
+ </li>
-
-
-
+
+
+
- <li><a href="
- ../../../../newtmgr/overview/
-">Newt Manager Manual</a>
+ <li ><a href="../../../../newtmgr/overview/">Newt Manager Guide</a>
-
- </li>
+
+ </li>
+
+
+
+ </ul>
+
+ </li>
@@ -693,8 +629,8 @@
../../../../faq/how_to_edit_docs/
">Appendix</a>
-
- </li>
+
+ </li>
@@ -705,45 +641,11 @@
<button class="show-sidebar">Docs Menu</button>
</div>
- <div class="col-md-offset-3 col-md-9 documentation-viewer" role="main">
+ <div class="col-md-9" role="main">
<div class="row doc-header">
- <div class="col-sm-6">
-
-<ul class="nav nav-pills">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <li class="active" role="presentation"><a href="../../../get_started/introduction/">Mynewt OS</a></li>
-
-
-
- <li role="presentation"><a href="../../../../newt/newt_intro/">Newt Tool</a></li>
-
-
-
- <li role="presentation"><a href="../../../../newtmgr/overview/">Newt Mgr</a></li>
-
-
-
-
-</ul>
- </div>
- <div class="col-sm-6">
+ <div class="col-sm-12">
<div role="navigation" aria-label="breadcrumbs navigation">
- <ul class="wy-breadcrumbs">
+ <ul class="wy-breadcrumbs pull-right">
<li><a href="/documentation/">Docs</a></li>
@@ -765,14 +667,14 @@
</div>
</div>
- <h2 id="os_mqueue_put"><font color="#F2853F" style="font-size:24pt">os_mqueue_put</font><a class="headerlink" href="#os_mqueue_put" title="Permanent link">¶</a></h2>
+ <h2 id="os_mqueue_put"><font color="#F2853F" style="font-size:24pt">os_mqueue_put</font></h2>
<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="color: #A90D91">int</span> <span style="color: #000000">os_mqueue_put</span>(<span style="color: #A90D91">struct</span> <span style="color: #000000">os_mqueue</span> <span style="color: #000000">*mq</span>, <span style="color: #A90D91">struct</span> <span style="color: #000000">os_eventq</span> <span style="color: #000000">*evq</span>, <span style="color: #A90D91">struct</span> <span style="color: #000000">os_mbuf</span> <span style="color: #000000">*m</span>)
</pre></div>
<p>Adds a packet (i.e. packet header mbuf) to an mqueue. Post event to <em>evq</em>. </p>
<p><br></p>
-<h4 id="arguments">Arguments<a class="headerlink" href="#arguments" title="Permanent link">¶</a></h4>
+<h4 id="arguments">Arguments</h4>
<table>
<thead>
<tr>
@@ -796,11 +698,11 @@
</tbody>
</table>
<p><br></p>
-<h4 id="returned-values">Returned values<a class="headerlink" href="#returned-values" title="Permanent link">¶</a></h4>
+<h4 id="returned-values">Returned values</h4>
<p>0: success</p>
<p>OS_EINVAL: the mbuf is not a packet header mbuf.</p>
<p><br></p>
-<h4 id="example">Example<a class="headerlink" href="#example" title="Permanent link">¶</a></h4>
+<h4 id="example">Example</h4>
<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="color: #A90D91">int</span>
<span style="color: #000000">my_task_rx_data_func</span>(<span style="color: #A90D91">struct</span> <span style="color: #000000">os_mbuf</span> <span style="color: #000000">*om</span>)
{