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/02/20 03:57:55 UTC
[27/37] incubator-mynewt-site git commit: Added pages for core OS
functions
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/c7f40764/os/core_os/mbuf/os_msys_get_pkthdr/index.html
----------------------------------------------------------------------
diff --git a/os/core_os/mbuf/os_msys_get_pkthdr/index.html b/os/core_os/mbuf/os_msys_get_pkthdr/index.html
new file mode 100644
index 0000000..7fa4287
--- /dev/null
+++ b/os/core_os/mbuf/os_msys_get_pkthdr/index.html
@@ -0,0 +1,608 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+
+ <link rel="canonical" href="http://127.0.0.1:8000/os/core_os/mbuf/os_msys_get_pkthdr/">
+ <link rel="shortcut icon" href="../../../../img/favicon.ico">
+
+ <title>os_msys_get_pkthdr - Apache Mynewt</title>
+
+ <link href="../../../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
+ <link href="../../../../css/font-awesome-4.0.3.css" rel="stylesheet">
+ <link rel="stylesheet" href="../../../../css/highlight.css">
+ <link href="../../../../css/base.css" rel="stylesheet">
+ <link href="../../../../css/custom.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">
+
+ <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
+ <!--[if lt IE 9]>
+ <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+ <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
+ <![endif]-->
+
+
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-72162311-1', 'mynewt.incubator.apache.org');
+ ga('send', 'pageview');
+ </script>
+
+ </head>
+
+
+ <body class="os_msys_get_pkthdr">
+
+
+ <div class="navbar navbar-default navbar-fixed-top" role="navigation">
+ <div class="logo-container">
+ <img src="/img/logo.svg">
+ </div>
+ <div class="container-fluid">
+ <!-- Collapsed navigation -->
+ <div class="navbar-header">
+ <!-- Expander button -->
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+
+ </div>
+
+ <!-- Expanded navigation -->
+ <div class="navbar-collapse collapse">
+ <!-- Main navigation -->
+ <ul class="nav navbar-nav navbar-right">
+ <li>
+ <a href="/">Home</a>
+ </li>
+ <li>
+ <a href="/documentation/">Docs</a>
+ </li>
+ <li>
+ <a href="/download/">Download</a>
+ </li>
+ <li>
+ <a href="/community/">Community</a>
+ </li>
+ <li>
+ <a href="/events/">Events</a>
+ </li>
+ </ul>
+
+ <!-- Search, Navigation and Repo links -->
+ <ul class="nav navbar-nav navbar-right">
+
+ </ul>
+ </div>
+ </div>
+</div>
+
+ <div class="container-fluid">
+
+ <div class="row sm-extra-padding">
+ <div class="col-md-3 bg-grey sidebar-container"><div class="bs-sidebar hidden-print" role="complementary">
+ <div class="sidebar-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 class="form-group">
+ <input type="text" name="q" placeholder="Search documentation" />
+ <button class="search-button" type="submit"><i class="fa fa-search"></i></button>
+ </div>
+ </form>
+ </div>
+ </div>
+ <ul class="nav bs-sidenav">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <li><a href="
+
+
+ ../../../get_started/newt_concepts/
+
+">Manual for Mynewt OS</a>
+
+ <ul class="current-toc">
+
+
+
+ <li><a href="
+ ../../../get_started/newt_concepts/
+">Get Started</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../../get_acclimated/project2/
+">More Projects</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+
+
+ ../../mynewt_os/
+
+">Mynewt OS</a>
+
+ <ul class="current-toc">
+
+
+
+ <li><a href="
+ ../../mynewt_os/
+">OS Fundamentals</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../context_switch/context_switch/
+">Scheduler/Context Switching</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../time/time/
+">Time</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../task/task/
+">Tasks</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../event_queue/event_queue/
+">Event Queues</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../semaphore/semaphore/
+">Semaphores</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../mutex/mutex/
+">Mutexes</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../memory_pool/memory_pool/
+">Memory Pools</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../heap/heap/
+">Heap</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../mbuf/
+">Mbufs</a>
+
+ <ul class="current-toc">
+
+
+
+ <li>
+ <a href="../mbuf/">mbuf overview</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../_os_mbuf_copypkthdr/">_os_mbuf_copypkthdr</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../_os_msys_find_pool/">_os_msys_find_pool</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_adj/">os_mbuf_adj</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_append/">os_mbuf_append</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_concat/">os_mbuf_concat</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_copydata/">os_mbuf_copydata</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_copyinto/">os_mbuf_copyinto</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_dup/">os_mbuf_dup</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_extend/">os_mbuf_extend</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_free/">os_mbuf_free</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_free_chain/">os_mbuf_free_chain</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_get/">os_mbuf_get</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_get_pkthdr/">os_mbuf_get_pkthdr</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_memcmp/">os_mbuf_memcmp</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_off/">os_mbuf_off</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_pool_init/">os_mbuf_pool_init</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_prepend/">os_mbuf_prepend</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_pullup/">os_mbuf_pullup</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mqueue_get/">os_mqueue_get</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mqueue_init/">os_mqueue_init</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mqueue_put/">os_mqueue_put</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_msys_get/">os_msys_get</a>
+ </li>
+
+
+
+
+
+ <li class="active">
+ os_msys_get_pkthdr
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_msys_register/">os_msys_register</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_msys_reset/">os_msys_reset</a>
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../sanity/sanity/
+">Sanity</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../callout/callout/
+">Callout Functions</a>
+
+ </li>
+
+
+
+
+ <li>
+ <a href="../../port_os/">Porting to other Platforms</a>
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+ <li><a href="
+
+
+ ../../../modules/console/console/
+
+">Modules</a>
+
+ </li>
+
+
+ </ul>
+
+ </li>
+
+
+
+
+
+
+ <li><a href="
+
+
+ ../../../../newt/newt_ops/
+
+">Manual for Newt Tool</a>
+
+ </li>
+
+
+
+
+
+
+ <li><a href="
+ ../../../../newtmgr/overview/
+">Manual for Newt Manager</a>
+
+ </li>
+
+
+
+ </ul>
+</div></div>
+
+ <div class="show-sidebar-container">
+ <button class="show-sidebar">Docs Menu</button>
+ </div>
+
+ <div class="col-md-9 documentation-viewer" role="main">
+ <div role="navigation" aria-label="breadcrumbs navigation">
+ <ul class="wy-breadcrumbs">
+ <li><a href="../../../..">Docs</a> »</li>
+
+
+
+ <li>Mynewt OS »</li>
+
+
+
+ <li>Mbufs »</li>
+
+
+
+ <li>os_msys_get_pkthdr</li>
+ <li class="wy-breadcrumbs-aside">
+
+ </li>
+ </ul>
+ <hr/>
+</div>
+
+
+
+ </div>
+ </div>
+
+ <div class="row">
+ <footer>
+ <div class="row">
+ <div class="col-md-12">
+
+ <p class="copyright">Copyright © 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p>
+
+ </div>
+ </div>
+ <div class="copyright-logos">
+ <div class="row">
+ <div class="col-xs-6 text-right">
+ <img src="/img/apache-feather.png" alt="Apache" title="Apache">
+ </div>
+ <div class="col-xs-6 text-left">
+ <img src="/img/apache-logo.png" alt="Apache Incubator" title="Apache Incubator">
+ </div>
+ </div>
+ </div>
+ <div class="row">
+ <div class="col-md-12">
+ <small class="footnote">
+ MyNewt is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
+ </small>
+ </div>
+ </div>
+</footer>
+ </div>
+ </div>
+
+ <script src="../../../../js/jquery-1.10.2.min.js"></script>
+ <script src="../../../../js/bootstrap-3.0.3.min.js"></script>
+ <script src="../../../../js/highlight.pack.js"></script>
+ <script src="../../../../js/base.js"></script>
+ <script src="../../../../js/custom.js"></script>
+
+ </body>
+</html>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/c7f40764/os/core_os/mbuf/os_msys_register/index.html
----------------------------------------------------------------------
diff --git a/os/core_os/mbuf/os_msys_register/index.html b/os/core_os/mbuf/os_msys_register/index.html
new file mode 100644
index 0000000..1aa16c5
--- /dev/null
+++ b/os/core_os/mbuf/os_msys_register/index.html
@@ -0,0 +1,608 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+
+ <link rel="canonical" href="http://127.0.0.1:8000/os/core_os/mbuf/os_msys_register/">
+ <link rel="shortcut icon" href="../../../../img/favicon.ico">
+
+ <title>os_msys_register - Apache Mynewt</title>
+
+ <link href="../../../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
+ <link href="../../../../css/font-awesome-4.0.3.css" rel="stylesheet">
+ <link rel="stylesheet" href="../../../../css/highlight.css">
+ <link href="../../../../css/base.css" rel="stylesheet">
+ <link href="../../../../css/custom.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">
+
+ <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
+ <!--[if lt IE 9]>
+ <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+ <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
+ <![endif]-->
+
+
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-72162311-1', 'mynewt.incubator.apache.org');
+ ga('send', 'pageview');
+ </script>
+
+ </head>
+
+
+ <body class="os_msys_register">
+
+
+ <div class="navbar navbar-default navbar-fixed-top" role="navigation">
+ <div class="logo-container">
+ <img src="/img/logo.svg">
+ </div>
+ <div class="container-fluid">
+ <!-- Collapsed navigation -->
+ <div class="navbar-header">
+ <!-- Expander button -->
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+
+ </div>
+
+ <!-- Expanded navigation -->
+ <div class="navbar-collapse collapse">
+ <!-- Main navigation -->
+ <ul class="nav navbar-nav navbar-right">
+ <li>
+ <a href="/">Home</a>
+ </li>
+ <li>
+ <a href="/documentation/">Docs</a>
+ </li>
+ <li>
+ <a href="/download/">Download</a>
+ </li>
+ <li>
+ <a href="/community/">Community</a>
+ </li>
+ <li>
+ <a href="/events/">Events</a>
+ </li>
+ </ul>
+
+ <!-- Search, Navigation and Repo links -->
+ <ul class="nav navbar-nav navbar-right">
+
+ </ul>
+ </div>
+ </div>
+</div>
+
+ <div class="container-fluid">
+
+ <div class="row sm-extra-padding">
+ <div class="col-md-3 bg-grey sidebar-container"><div class="bs-sidebar hidden-print" role="complementary">
+ <div class="sidebar-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 class="form-group">
+ <input type="text" name="q" placeholder="Search documentation" />
+ <button class="search-button" type="submit"><i class="fa fa-search"></i></button>
+ </div>
+ </form>
+ </div>
+ </div>
+ <ul class="nav bs-sidenav">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <li><a href="
+
+
+ ../../../get_started/newt_concepts/
+
+">Manual for Mynewt OS</a>
+
+ <ul class="current-toc">
+
+
+
+ <li><a href="
+ ../../../get_started/newt_concepts/
+">Get Started</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../../get_acclimated/project2/
+">More Projects</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+
+
+ ../../mynewt_os/
+
+">Mynewt OS</a>
+
+ <ul class="current-toc">
+
+
+
+ <li><a href="
+ ../../mynewt_os/
+">OS Fundamentals</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../context_switch/context_switch/
+">Scheduler/Context Switching</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../time/time/
+">Time</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../task/task/
+">Tasks</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../event_queue/event_queue/
+">Event Queues</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../semaphore/semaphore/
+">Semaphores</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../mutex/mutex/
+">Mutexes</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../memory_pool/memory_pool/
+">Memory Pools</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../heap/heap/
+">Heap</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../mbuf/
+">Mbufs</a>
+
+ <ul class="current-toc">
+
+
+
+ <li>
+ <a href="../mbuf/">mbuf overview</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../_os_mbuf_copypkthdr/">_os_mbuf_copypkthdr</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../_os_msys_find_pool/">_os_msys_find_pool</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_adj/">os_mbuf_adj</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_append/">os_mbuf_append</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_concat/">os_mbuf_concat</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_copydata/">os_mbuf_copydata</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_copyinto/">os_mbuf_copyinto</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_dup/">os_mbuf_dup</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_extend/">os_mbuf_extend</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_free/">os_mbuf_free</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_free_chain/">os_mbuf_free_chain</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_get/">os_mbuf_get</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_get_pkthdr/">os_mbuf_get_pkthdr</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_memcmp/">os_mbuf_memcmp</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_off/">os_mbuf_off</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_pool_init/">os_mbuf_pool_init</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_prepend/">os_mbuf_prepend</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_pullup/">os_mbuf_pullup</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mqueue_get/">os_mqueue_get</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mqueue_init/">os_mqueue_init</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mqueue_put/">os_mqueue_put</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_msys_get/">os_msys_get</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_msys_get_pkthdr/">os_msys_get_pkthdr</a>
+ </li>
+
+
+
+
+
+ <li class="active">
+ os_msys_register
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_msys_reset/">os_msys_reset</a>
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../sanity/sanity/
+">Sanity</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../callout/callout/
+">Callout Functions</a>
+
+ </li>
+
+
+
+
+ <li>
+ <a href="../../port_os/">Porting to other Platforms</a>
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+ <li><a href="
+
+
+ ../../../modules/console/console/
+
+">Modules</a>
+
+ </li>
+
+
+ </ul>
+
+ </li>
+
+
+
+
+
+
+ <li><a href="
+
+
+ ../../../../newt/newt_ops/
+
+">Manual for Newt Tool</a>
+
+ </li>
+
+
+
+
+
+
+ <li><a href="
+ ../../../../newtmgr/overview/
+">Manual for Newt Manager</a>
+
+ </li>
+
+
+
+ </ul>
+</div></div>
+
+ <div class="show-sidebar-container">
+ <button class="show-sidebar">Docs Menu</button>
+ </div>
+
+ <div class="col-md-9 documentation-viewer" role="main">
+ <div role="navigation" aria-label="breadcrumbs navigation">
+ <ul class="wy-breadcrumbs">
+ <li><a href="../../../..">Docs</a> »</li>
+
+
+
+ <li>Mynewt OS »</li>
+
+
+
+ <li>Mbufs »</li>
+
+
+
+ <li>os_msys_register</li>
+ <li class="wy-breadcrumbs-aside">
+
+ </li>
+ </ul>
+ <hr/>
+</div>
+
+
+
+ </div>
+ </div>
+
+ <div class="row">
+ <footer>
+ <div class="row">
+ <div class="col-md-12">
+
+ <p class="copyright">Copyright © 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p>
+
+ </div>
+ </div>
+ <div class="copyright-logos">
+ <div class="row">
+ <div class="col-xs-6 text-right">
+ <img src="/img/apache-feather.png" alt="Apache" title="Apache">
+ </div>
+ <div class="col-xs-6 text-left">
+ <img src="/img/apache-logo.png" alt="Apache Incubator" title="Apache Incubator">
+ </div>
+ </div>
+ </div>
+ <div class="row">
+ <div class="col-md-12">
+ <small class="footnote">
+ MyNewt is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
+ </small>
+ </div>
+ </div>
+</footer>
+ </div>
+ </div>
+
+ <script src="../../../../js/jquery-1.10.2.min.js"></script>
+ <script src="../../../../js/bootstrap-3.0.3.min.js"></script>
+ <script src="../../../../js/highlight.pack.js"></script>
+ <script src="../../../../js/base.js"></script>
+ <script src="../../../../js/custom.js"></script>
+
+ </body>
+</html>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/c7f40764/os/core_os/mbuf/os_msys_reset/index.html
----------------------------------------------------------------------
diff --git a/os/core_os/mbuf/os_msys_reset/index.html b/os/core_os/mbuf/os_msys_reset/index.html
new file mode 100644
index 0000000..1389e1e
--- /dev/null
+++ b/os/core_os/mbuf/os_msys_reset/index.html
@@ -0,0 +1,608 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+
+ <link rel="canonical" href="http://127.0.0.1:8000/os/core_os/mbuf/os_msys_reset/">
+ <link rel="shortcut icon" href="../../../../img/favicon.ico">
+
+ <title>os_msys_reset - Apache Mynewt</title>
+
+ <link href="../../../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
+ <link href="../../../../css/font-awesome-4.0.3.css" rel="stylesheet">
+ <link rel="stylesheet" href="../../../../css/highlight.css">
+ <link href="../../../../css/base.css" rel="stylesheet">
+ <link href="../../../../css/custom.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">
+
+ <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
+ <!--[if lt IE 9]>
+ <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+ <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
+ <![endif]-->
+
+
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-72162311-1', 'mynewt.incubator.apache.org');
+ ga('send', 'pageview');
+ </script>
+
+ </head>
+
+
+ <body class="os_msys_reset">
+
+
+ <div class="navbar navbar-default navbar-fixed-top" role="navigation">
+ <div class="logo-container">
+ <img src="/img/logo.svg">
+ </div>
+ <div class="container-fluid">
+ <!-- Collapsed navigation -->
+ <div class="navbar-header">
+ <!-- Expander button -->
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+
+ </div>
+
+ <!-- Expanded navigation -->
+ <div class="navbar-collapse collapse">
+ <!-- Main navigation -->
+ <ul class="nav navbar-nav navbar-right">
+ <li>
+ <a href="/">Home</a>
+ </li>
+ <li>
+ <a href="/documentation/">Docs</a>
+ </li>
+ <li>
+ <a href="/download/">Download</a>
+ </li>
+ <li>
+ <a href="/community/">Community</a>
+ </li>
+ <li>
+ <a href="/events/">Events</a>
+ </li>
+ </ul>
+
+ <!-- Search, Navigation and Repo links -->
+ <ul class="nav navbar-nav navbar-right">
+
+ </ul>
+ </div>
+ </div>
+</div>
+
+ <div class="container-fluid">
+
+ <div class="row sm-extra-padding">
+ <div class="col-md-3 bg-grey sidebar-container"><div class="bs-sidebar hidden-print" role="complementary">
+ <div class="sidebar-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 class="form-group">
+ <input type="text" name="q" placeholder="Search documentation" />
+ <button class="search-button" type="submit"><i class="fa fa-search"></i></button>
+ </div>
+ </form>
+ </div>
+ </div>
+ <ul class="nav bs-sidenav">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <li><a href="
+
+
+ ../../../get_started/newt_concepts/
+
+">Manual for Mynewt OS</a>
+
+ <ul class="current-toc">
+
+
+
+ <li><a href="
+ ../../../get_started/newt_concepts/
+">Get Started</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../../get_acclimated/project2/
+">More Projects</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+
+
+ ../../mynewt_os/
+
+">Mynewt OS</a>
+
+ <ul class="current-toc">
+
+
+
+ <li><a href="
+ ../../mynewt_os/
+">OS Fundamentals</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../context_switch/context_switch/
+">Scheduler/Context Switching</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../time/time/
+">Time</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../task/task/
+">Tasks</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../event_queue/event_queue/
+">Event Queues</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../semaphore/semaphore/
+">Semaphores</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../mutex/mutex/
+">Mutexes</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../memory_pool/memory_pool/
+">Memory Pools</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../heap/heap/
+">Heap</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../mbuf/
+">Mbufs</a>
+
+ <ul class="current-toc">
+
+
+
+ <li>
+ <a href="../mbuf/">mbuf overview</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../_os_mbuf_copypkthdr/">_os_mbuf_copypkthdr</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../_os_msys_find_pool/">_os_msys_find_pool</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_adj/">os_mbuf_adj</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_append/">os_mbuf_append</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_concat/">os_mbuf_concat</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_copydata/">os_mbuf_copydata</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_copyinto/">os_mbuf_copyinto</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_dup/">os_mbuf_dup</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_extend/">os_mbuf_extend</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_free/">os_mbuf_free</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_free_chain/">os_mbuf_free_chain</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_get/">os_mbuf_get</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_get_pkthdr/">os_mbuf_get_pkthdr</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_memcmp/">os_mbuf_memcmp</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_off/">os_mbuf_off</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_pool_init/">os_mbuf_pool_init</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_prepend/">os_mbuf_prepend</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mbuf_pullup/">os_mbuf_pullup</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mqueue_get/">os_mqueue_get</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mqueue_init/">os_mqueue_init</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mqueue_put/">os_mqueue_put</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_msys_get/">os_msys_get</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_msys_get_pkthdr/">os_msys_get_pkthdr</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_msys_register/">os_msys_register</a>
+ </li>
+
+
+
+
+
+ <li class="active">
+ os_msys_reset
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../sanity/sanity/
+">Sanity</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../callout/callout/
+">Callout Functions</a>
+
+ </li>
+
+
+
+
+ <li>
+ <a href="../../port_os/">Porting to other Platforms</a>
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+ <li><a href="
+
+
+ ../../../modules/console/console/
+
+">Modules</a>
+
+ </li>
+
+
+ </ul>
+
+ </li>
+
+
+
+
+
+
+ <li><a href="
+
+
+ ../../../../newt/newt_ops/
+
+">Manual for Newt Tool</a>
+
+ </li>
+
+
+
+
+
+
+ <li><a href="
+ ../../../../newtmgr/overview/
+">Manual for Newt Manager</a>
+
+ </li>
+
+
+
+ </ul>
+</div></div>
+
+ <div class="show-sidebar-container">
+ <button class="show-sidebar">Docs Menu</button>
+ </div>
+
+ <div class="col-md-9 documentation-viewer" role="main">
+ <div role="navigation" aria-label="breadcrumbs navigation">
+ <ul class="wy-breadcrumbs">
+ <li><a href="../../../..">Docs</a> »</li>
+
+
+
+ <li>Mynewt OS »</li>
+
+
+
+ <li>Mbufs »</li>
+
+
+
+ <li>os_msys_reset</li>
+ <li class="wy-breadcrumbs-aside">
+
+ </li>
+ </ul>
+ <hr/>
+</div>
+
+
+
+ </div>
+ </div>
+
+ <div class="row">
+ <footer>
+ <div class="row">
+ <div class="col-md-12">
+
+ <p class="copyright">Copyright © 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p>
+
+ </div>
+ </div>
+ <div class="copyright-logos">
+ <div class="row">
+ <div class="col-xs-6 text-right">
+ <img src="/img/apache-feather.png" alt="Apache" title="Apache">
+ </div>
+ <div class="col-xs-6 text-left">
+ <img src="/img/apache-logo.png" alt="Apache Incubator" title="Apache Incubator">
+ </div>
+ </div>
+ </div>
+ <div class="row">
+ <div class="col-md-12">
+ <small class="footnote">
+ MyNewt is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
+ </small>
+ </div>
+ </div>
+</footer>
+ </div>
+ </div>
+
+ <script src="../../../../js/jquery-1.10.2.min.js"></script>
+ <script src="../../../../js/bootstrap-3.0.3.min.js"></script>
+ <script src="../../../../js/highlight.pack.js"></script>
+ <script src="../../../../js/base.js"></script>
+ <script src="../../../../js/custom.js"></script>
+
+ </body>
+</html>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/c7f40764/os/core_os/memory_pool/OS_MEMPOOL_BYTES/index.html
----------------------------------------------------------------------
diff --git a/os/core_os/memory_pool/OS_MEMPOOL_BYTES/index.html b/os/core_os/memory_pool/OS_MEMPOOL_BYTES/index.html
new file mode 100644
index 0000000..d898043
--- /dev/null
+++ b/os/core_os/memory_pool/OS_MEMPOOL_BYTES/index.html
@@ -0,0 +1,479 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+
+ <link rel="canonical" href="http://127.0.0.1:8000/os/core_os/memory_pool/OS_MEMPOOL_BYTES/">
+ <link rel="shortcut icon" href="../../../../img/favicon.ico">
+
+ <title>OS_MEMPOOL_BYTES - Apache Mynewt</title>
+
+ <link href="../../../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
+ <link href="../../../../css/font-awesome-4.0.3.css" rel="stylesheet">
+ <link rel="stylesheet" href="../../../../css/highlight.css">
+ <link href="../../../../css/base.css" rel="stylesheet">
+ <link href="../../../../css/custom.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">
+
+ <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
+ <!--[if lt IE 9]>
+ <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+ <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
+ <![endif]-->
+
+
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-72162311-1', 'mynewt.incubator.apache.org');
+ ga('send', 'pageview');
+ </script>
+
+ </head>
+
+
+ <body class="OS_MEMPOOL_BYTES">
+
+
+ <div class="navbar navbar-default navbar-fixed-top" role="navigation">
+ <div class="logo-container">
+ <img src="/img/logo.svg">
+ </div>
+ <div class="container-fluid">
+ <!-- Collapsed navigation -->
+ <div class="navbar-header">
+ <!-- Expander button -->
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+
+ </div>
+
+ <!-- Expanded navigation -->
+ <div class="navbar-collapse collapse">
+ <!-- Main navigation -->
+ <ul class="nav navbar-nav navbar-right">
+ <li>
+ <a href="/">Home</a>
+ </li>
+ <li>
+ <a href="/documentation/">Docs</a>
+ </li>
+ <li>
+ <a href="/download/">Download</a>
+ </li>
+ <li>
+ <a href="/community/">Community</a>
+ </li>
+ <li>
+ <a href="/events/">Events</a>
+ </li>
+ </ul>
+
+ <!-- Search, Navigation and Repo links -->
+ <ul class="nav navbar-nav navbar-right">
+
+ </ul>
+ </div>
+ </div>
+</div>
+
+ <div class="container-fluid">
+
+ <div class="row sm-extra-padding">
+ <div class="col-md-3 bg-grey sidebar-container"><div class="bs-sidebar hidden-print" role="complementary">
+ <div class="sidebar-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 class="form-group">
+ <input type="text" name="q" placeholder="Search documentation" />
+ <button class="search-button" type="submit"><i class="fa fa-search"></i></button>
+ </div>
+ </form>
+ </div>
+ </div>
+ <ul class="nav bs-sidenav">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <li><a href="
+
+
+ ../../../get_started/newt_concepts/
+
+">Manual for Mynewt OS</a>
+
+ <ul class="current-toc">
+
+
+
+ <li><a href="
+ ../../../get_started/newt_concepts/
+">Get Started</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../../get_acclimated/project2/
+">More Projects</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+
+
+ ../../mynewt_os/
+
+">Mynewt OS</a>
+
+ <ul class="current-toc">
+
+
+
+ <li><a href="
+ ../../mynewt_os/
+">OS Fundamentals</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../context_switch/context_switch/
+">Scheduler/Context Switching</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../time/time/
+">Time</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../task/task/
+">Tasks</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../event_queue/event_queue/
+">Event Queues</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../semaphore/semaphore/
+">Semaphores</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../mutex/mutex/
+">Mutexes</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../memory_pool/
+">Memory Pools</a>
+
+ <ul class="current-toc">
+
+
+
+ <li>
+ <a href="../memory_pool/">mempool overview</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_memblock_get/">os_memblock_get</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mempool_init/">os_mempool_init</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_memblock_put/">os_memblock_put</a>
+ </li>
+
+
+
+
+
+ <li class="active">
+ OS_MEMPOOL_BYTES
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../heap/heap/
+">Heap</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../mbuf/mbuf/
+">Mbufs</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../sanity/sanity/
+">Sanity</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../callout/callout/
+">Callout Functions</a>
+
+ </li>
+
+
+
+
+ <li>
+ <a href="../../port_os/">Porting to other Platforms</a>
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+ <li><a href="
+
+
+ ../../../modules/console/console/
+
+">Modules</a>
+
+ </li>
+
+
+ </ul>
+
+ </li>
+
+
+
+
+
+
+ <li><a href="
+
+
+ ../../../../newt/newt_ops/
+
+">Manual for Newt Tool</a>
+
+ </li>
+
+
+
+
+
+
+ <li><a href="
+ ../../../../newtmgr/overview/
+">Manual for Newt Manager</a>
+
+ </li>
+
+
+
+ </ul>
+</div></div>
+
+ <div class="show-sidebar-container">
+ <button class="show-sidebar">Docs Menu</button>
+ </div>
+
+ <div class="col-md-9 documentation-viewer" role="main">
+ <div role="navigation" aria-label="breadcrumbs navigation">
+ <ul class="wy-breadcrumbs">
+ <li><a href="../../../..">Docs</a> »</li>
+
+
+
+ <li>Mynewt OS »</li>
+
+
+
+ <li>Memory Pools »</li>
+
+
+
+ <li>OS_MEMPOOL_BYTES</li>
+ <li class="wy-breadcrumbs-aside">
+
+ </li>
+ </ul>
+ <hr/>
+</div>
+
+ <h2 id="os_mempool_bytes"><font color="#F2853F" style="font-size:24pt">OS_MEMPOOL_BYTES</font><a class="headerlink" href="#os_mempool_bytes" title="Permanent link">¶</a></h2>
+<pre><code class="no-highlight">OS_MEMPOOL_BYTES(n,blksize)
+</code></pre>
+
+<p>Calculates how many bytes of memory is used by <em>n</em> number of elements, when individual element size is <em>blksize</em> bytes.</p>
+<h4 id="arguments">Arguments<a class="headerlink" href="#arguments" title="Permanent link">¶</a></h4>
+<table>
+<thead>
+<tr>
+<th>Arguments</th>
+<th>Description</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>n</td>
+<td>Number of elements</td>
+</tr>
+<tr>
+<td>blksize</td>
+<td>Size of an element is number of bytes</td>
+</tr>
+</tbody>
+</table>
+<h4 id="returned-values">Returned values<a class="headerlink" href="#returned-values" title="Permanent link">¶</a></h4>
+<p>List any values returned.
+Error codes?</p>
+<h4 id="notes">Notes<a class="headerlink" href="#notes" title="Permanent link">¶</a></h4>
+<h4 id="example">Example<a class="headerlink" href="#example" title="Permanent link">¶</a></h4>
+<p>Here we allocate memory to be used as a pool.</p>
+<pre><code class="no-highlight">void *nffs_file_mem;
+
+nffs_file_mem = malloc(
+ OS_MEMPOOL_BYTES(nffs_config.nc_num_files, sizeof (struct nffs_file)));
+ if (nffs_file_mem == NULL) {
+ return FS_ENOMEM;
+ }
+</code></pre>
+
+<hr />
+
+ </div>
+ </div>
+
+ <div class="row">
+ <footer>
+ <div class="row">
+ <div class="col-md-12">
+
+ <p class="copyright">Copyright © 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p>
+
+ </div>
+ </div>
+ <div class="copyright-logos">
+ <div class="row">
+ <div class="col-xs-6 text-right">
+ <img src="/img/apache-feather.png" alt="Apache" title="Apache">
+ </div>
+ <div class="col-xs-6 text-left">
+ <img src="/img/apache-logo.png" alt="Apache Incubator" title="Apache Incubator">
+ </div>
+ </div>
+ </div>
+ <div class="row">
+ <div class="col-md-12">
+ <small class="footnote">
+ MyNewt is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
+ </small>
+ </div>
+ </div>
+</footer>
+ </div>
+ </div>
+
+ <script src="../../../../js/jquery-1.10.2.min.js"></script>
+ <script src="../../../../js/bootstrap-3.0.3.min.js"></script>
+ <script src="../../../../js/highlight.pack.js"></script>
+ <script src="../../../../js/base.js"></script>
+ <script src="../../../../js/custom.js"></script>
+
+ </body>
+</html>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/c7f40764/os/core_os/memory_pool/memory_pool/index.html
----------------------------------------------------------------------
diff --git a/os/core_os/memory_pool/memory_pool/index.html b/os/core_os/memory_pool/memory_pool/index.html
new file mode 100644
index 0000000..412dd34
--- /dev/null
+++ b/os/core_os/memory_pool/memory_pool/index.html
@@ -0,0 +1,489 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+
+ <link rel="canonical" href="http://127.0.0.1:8000/os/core_os/memory_pool/memory_pool/">
+ <link rel="shortcut icon" href="../../../../img/favicon.ico">
+
+ <title>mempool overview - Apache Mynewt</title>
+
+ <link href="../../../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
+ <link href="../../../../css/font-awesome-4.0.3.css" rel="stylesheet">
+ <link rel="stylesheet" href="../../../../css/highlight.css">
+ <link href="../../../../css/base.css" rel="stylesheet">
+ <link href="../../../../css/custom.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">
+
+ <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
+ <!--[if lt IE 9]>
+ <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+ <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
+ <![endif]-->
+
+
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-72162311-1', 'mynewt.incubator.apache.org');
+ ga('send', 'pageview');
+ </script>
+
+ </head>
+
+
+ <body class="mempool overview">
+
+
+ <div class="navbar navbar-default navbar-fixed-top" role="navigation">
+ <div class="logo-container">
+ <img src="/img/logo.svg">
+ </div>
+ <div class="container-fluid">
+ <!-- Collapsed navigation -->
+ <div class="navbar-header">
+ <!-- Expander button -->
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+
+ </div>
+
+ <!-- Expanded navigation -->
+ <div class="navbar-collapse collapse">
+ <!-- Main navigation -->
+ <ul class="nav navbar-nav navbar-right">
+ <li>
+ <a href="/">Home</a>
+ </li>
+ <li>
+ <a href="/documentation/">Docs</a>
+ </li>
+ <li>
+ <a href="/download/">Download</a>
+ </li>
+ <li>
+ <a href="/community/">Community</a>
+ </li>
+ <li>
+ <a href="/events/">Events</a>
+ </li>
+ </ul>
+
+ <!-- Search, Navigation and Repo links -->
+ <ul class="nav navbar-nav navbar-right">
+
+ </ul>
+ </div>
+ </div>
+</div>
+
+ <div class="container-fluid">
+
+ <div class="row sm-extra-padding">
+ <div class="col-md-3 bg-grey sidebar-container"><div class="bs-sidebar hidden-print" role="complementary">
+ <div class="sidebar-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 class="form-group">
+ <input type="text" name="q" placeholder="Search documentation" />
+ <button class="search-button" type="submit"><i class="fa fa-search"></i></button>
+ </div>
+ </form>
+ </div>
+ </div>
+ <ul class="nav bs-sidenav">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <li><a href="
+
+
+ ../../../get_started/newt_concepts/
+
+">Manual for Mynewt OS</a>
+
+ <ul class="current-toc">
+
+
+
+ <li><a href="
+ ../../../get_started/newt_concepts/
+">Get Started</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../../get_acclimated/project2/
+">More Projects</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+
+
+ ../../mynewt_os/
+
+">Mynewt OS</a>
+
+ <ul class="current-toc">
+
+
+
+ <li><a href="
+ ../../mynewt_os/
+">OS Fundamentals</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../context_switch/context_switch/
+">Scheduler/Context Switching</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../time/time/
+">Time</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../task/task/
+">Tasks</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../event_queue/event_queue/
+">Event Queues</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../semaphore/semaphore/
+">Semaphores</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../mutex/mutex/
+">Mutexes</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ./
+">Memory Pools</a>
+
+ <ul class="current-toc">
+
+
+
+ <li class="active">
+ mempool overview
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_memblock_get/">os_memblock_get</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mempool_init/">os_mempool_init</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_memblock_put/">os_memblock_put</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../OS_MEMPOOL_BYTES/">OS_MEMPOOL_BYTES</a>
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../heap/heap/
+">Heap</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../mbuf/mbuf/
+">Mbufs</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../sanity/sanity/
+">Sanity</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../callout/callout/
+">Callout Functions</a>
+
+ </li>
+
+
+
+
+ <li>
+ <a href="../../port_os/">Porting to other Platforms</a>
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+ <li><a href="
+
+
+ ../../../modules/console/console/
+
+">Modules</a>
+
+ </li>
+
+
+ </ul>
+
+ </li>
+
+
+
+
+
+
+ <li><a href="
+
+
+ ../../../../newt/newt_ops/
+
+">Manual for Newt Tool</a>
+
+ </li>
+
+
+
+
+
+
+ <li><a href="
+ ../../../../newtmgr/overview/
+">Manual for Newt Manager</a>
+
+ </li>
+
+
+
+ </ul>
+</div></div>
+
+ <div class="show-sidebar-container">
+ <button class="show-sidebar">Docs Menu</button>
+ </div>
+
+ <div class="col-md-9 documentation-viewer" role="main">
+ <div role="navigation" aria-label="breadcrumbs navigation">
+ <ul class="wy-breadcrumbs">
+ <li><a href="../../../..">Docs</a> »</li>
+
+
+
+ <li>Mynewt OS »</li>
+
+
+
+ <li>Memory Pools »</li>
+
+
+
+ <li>mempool overview</li>
+ <li class="wy-breadcrumbs-aside">
+
+ </li>
+ </ul>
+ <hr/>
+</div>
+
+ <h1 id="memory-pools">Memory Pools<a class="headerlink" href="#memory-pools" title="Permanent link">¶</a></h1>
+<p>Memory can be pre-allocated to a pool of fixed size elements.</p>
+<h2 id="description">Description<a class="headerlink" href="#description" title="Permanent link">¶</a></h2>
+<p>Sometimes it's useful to have several memory blocks of same size preallocated for specific use. E.g. you want to limit the amount of memory used for it, or you want to make sure that there is memory available when you ask for it.</p>
+<p>This can be done using a memory pool. You allocate memory either statically or from heap, and then designate that memory to be used as storage for fixed size elements.</p>
+<p>Pool will be initialized by calling <em>os_mempool_init()</em>. Element can be allocated from it with <em>os_mempool_get()</em>, and released back with <em>os_mempool_put()</em>.</p>
+<h2 id="data-structures">Data structures<a class="headerlink" href="#data-structures" title="Permanent link">¶</a></h2>
+<pre><code class="no-highlight">struct os_mempool {
+ int mp_block_size;
+ int mp_num_blocks;
+ int mp_num_free;
+ SLIST_HEAD(,os_memblock);
+ char *name;
+};
+</code></pre>
+
+<table>
+<thead>
+<tr>
+<th>Element</th>
+<th>Description</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>mp_block_size</td>
+<td>Size of the memory blocks, in bytes</td>
+</tr>
+<tr>
+<td>mp_num_blocks</td>
+<td>Number of memory blocks in the pool</td>
+</tr>
+<tr>
+<td>mp_num_free</td>
+<td>Number of free blocks left</td>
+</tr>
+<tr>
+<td>name</td>
+<td>Name for the memory block</td>
+</tr>
+</tbody>
+</table>
+<h2 id="list-of-functions">List of Functions<a class="headerlink" href="#list-of-functions" title="Permanent link">¶</a></h2>
+<p>The functions available in mem_pool are:</p>
+<ul>
+<li><a href="../os_memblock_get">os_memblock_get</a></li>
+<li><a href="../os_mempool_init">os_mempool_init</a></li>
+<li><a href="../os_memblock_put">os_memblock_put</a></li>
+<li><a href="../OS_MEMPOOL_BYTES">OS_MEMPOOL_BYTES</a></li>
+</ul>
+
+ </div>
+ </div>
+
+ <div class="row">
+ <footer>
+ <div class="row">
+ <div class="col-md-12">
+
+ <p class="copyright">Copyright © 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p>
+
+ </div>
+ </div>
+ <div class="copyright-logos">
+ <div class="row">
+ <div class="col-xs-6 text-right">
+ <img src="/img/apache-feather.png" alt="Apache" title="Apache">
+ </div>
+ <div class="col-xs-6 text-left">
+ <img src="/img/apache-logo.png" alt="Apache Incubator" title="Apache Incubator">
+ </div>
+ </div>
+ </div>
+ <div class="row">
+ <div class="col-md-12">
+ <small class="footnote">
+ MyNewt is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
+ </small>
+ </div>
+ </div>
+</footer>
+ </div>
+ </div>
+
+ <script src="../../../../js/jquery-1.10.2.min.js"></script>
+ <script src="../../../../js/bootstrap-3.0.3.min.js"></script>
+ <script src="../../../../js/highlight.pack.js"></script>
+ <script src="../../../../js/base.js"></script>
+ <script src="../../../../js/custom.js"></script>
+
+ </body>
+</html>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/c7f40764/os/core_os/memory_pool/os_memblock_get/index.html
----------------------------------------------------------------------
diff --git a/os/core_os/memory_pool/os_memblock_get/index.html b/os/core_os/memory_pool/os_memblock_get/index.html
new file mode 100644
index 0000000..67b488d
--- /dev/null
+++ b/os/core_os/memory_pool/os_memblock_get/index.html
@@ -0,0 +1,475 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+
+ <link rel="canonical" href="http://127.0.0.1:8000/os/core_os/memory_pool/os_memblock_get/">
+ <link rel="shortcut icon" href="../../../../img/favicon.ico">
+
+ <title>os_memblock_get - Apache Mynewt</title>
+
+ <link href="../../../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
+ <link href="../../../../css/font-awesome-4.0.3.css" rel="stylesheet">
+ <link rel="stylesheet" href="../../../../css/highlight.css">
+ <link href="../../../../css/base.css" rel="stylesheet">
+ <link href="../../../../css/custom.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">
+
+ <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
+ <!--[if lt IE 9]>
+ <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+ <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
+ <![endif]-->
+
+
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-72162311-1', 'mynewt.incubator.apache.org');
+ ga('send', 'pageview');
+ </script>
+
+ </head>
+
+
+ <body class="os_memblock_get">
+
+
+ <div class="navbar navbar-default navbar-fixed-top" role="navigation">
+ <div class="logo-container">
+ <img src="/img/logo.svg">
+ </div>
+ <div class="container-fluid">
+ <!-- Collapsed navigation -->
+ <div class="navbar-header">
+ <!-- Expander button -->
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+
+ </div>
+
+ <!-- Expanded navigation -->
+ <div class="navbar-collapse collapse">
+ <!-- Main navigation -->
+ <ul class="nav navbar-nav navbar-right">
+ <li>
+ <a href="/">Home</a>
+ </li>
+ <li>
+ <a href="/documentation/">Docs</a>
+ </li>
+ <li>
+ <a href="/download/">Download</a>
+ </li>
+ <li>
+ <a href="/community/">Community</a>
+ </li>
+ <li>
+ <a href="/events/">Events</a>
+ </li>
+ </ul>
+
+ <!-- Search, Navigation and Repo links -->
+ <ul class="nav navbar-nav navbar-right">
+
+ </ul>
+ </div>
+ </div>
+</div>
+
+ <div class="container-fluid">
+
+ <div class="row sm-extra-padding">
+ <div class="col-md-3 bg-grey sidebar-container"><div class="bs-sidebar hidden-print" role="complementary">
+ <div class="sidebar-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 class="form-group">
+ <input type="text" name="q" placeholder="Search documentation" />
+ <button class="search-button" type="submit"><i class="fa fa-search"></i></button>
+ </div>
+ </form>
+ </div>
+ </div>
+ <ul class="nav bs-sidenav">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <li><a href="
+
+
+ ../../../get_started/newt_concepts/
+
+">Manual for Mynewt OS</a>
+
+ <ul class="current-toc">
+
+
+
+ <li><a href="
+ ../../../get_started/newt_concepts/
+">Get Started</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../../get_acclimated/project2/
+">More Projects</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+
+
+ ../../mynewt_os/
+
+">Mynewt OS</a>
+
+ <ul class="current-toc">
+
+
+
+ <li><a href="
+ ../../mynewt_os/
+">OS Fundamentals</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../context_switch/context_switch/
+">Scheduler/Context Switching</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../time/time/
+">Time</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../task/task/
+">Tasks</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../event_queue/event_queue/
+">Event Queues</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../semaphore/semaphore/
+">Semaphores</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../mutex/mutex/
+">Mutexes</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../memory_pool/
+">Memory Pools</a>
+
+ <ul class="current-toc">
+
+
+
+ <li>
+ <a href="../memory_pool/">mempool overview</a>
+ </li>
+
+
+
+
+
+ <li class="active">
+ os_memblock_get
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_mempool_init/">os_mempool_init</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../os_memblock_put/">os_memblock_put</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../OS_MEMPOOL_BYTES/">OS_MEMPOOL_BYTES</a>
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../heap/heap/
+">Heap</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../mbuf/mbuf/
+">Mbufs</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../sanity/sanity/
+">Sanity</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../callout/callout/
+">Callout Functions</a>
+
+ </li>
+
+
+
+
+ <li>
+ <a href="../../port_os/">Porting to other Platforms</a>
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+ <li><a href="
+
+
+ ../../../modules/console/console/
+
+">Modules</a>
+
+ </li>
+
+
+ </ul>
+
+ </li>
+
+
+
+
+
+
+ <li><a href="
+
+
+ ../../../../newt/newt_ops/
+
+">Manual for Newt Tool</a>
+
+ </li>
+
+
+
+
+
+
+ <li><a href="
+ ../../../../newtmgr/overview/
+">Manual for Newt Manager</a>
+
+ </li>
+
+
+
+ </ul>
+</div></div>
+
+ <div class="show-sidebar-container">
+ <button class="show-sidebar">Docs Menu</button>
+ </div>
+
+ <div class="col-md-9 documentation-viewer" role="main">
+ <div role="navigation" aria-label="breadcrumbs navigation">
+ <ul class="wy-breadcrumbs">
+ <li><a href="../../../..">Docs</a> »</li>
+
+
+
+ <li>Mynewt OS »</li>
+
+
+
+ <li>Memory Pools »</li>
+
+
+
+ <li>os_memblock_get</li>
+ <li class="wy-breadcrumbs-aside">
+
+ </li>
+ </ul>
+ <hr/>
+</div>
+
+ <h2 id="os_memblock_get"><font color="#F2853F" style="font-size:24pt"> os_memblock_get</font><a class="headerlink" href="#os_memblock_get" title="Permanent link">¶</a></h2>
+<pre><code class="no-highlight">void *os_memblock_get(struct os_mempool *mp)
+</code></pre>
+
+<p>Allocate an element from the memory pool. If succesful, you'll get a pointer to allocated element. If there are no elements available, you'll get NULL as response.</p>
+<h4 id="arguments">Arguments<a class="headerlink" href="#arguments" title="Permanent link">¶</a></h4>
+<table>
+<thead>
+<tr>
+<th>Arguments</th>
+<th>Description</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>mp</td>
+<td>Pool where element is getting allocated from</td>
+</tr>
+</tbody>
+</table>
+<h4 id="returned-values">Returned values<a class="headerlink" href="#returned-values" title="Permanent link">¶</a></h4>
+<p>NULL: no elements available.
+<pointer>: pointer to allocated element.</p>
+<h4 id="notes">Notes<a class="headerlink" href="#notes" title="Permanent link">¶</a></h4>
+<h4 id="example">Example<a class="headerlink" href="#example" title="Permanent link">¶</a></h4>
+<p><Add text to set up the context for the example here></p>
+<pre><code class="no-highlight"> struct nffs_file *file;
+
+ file = os_memblock_get(&nffs_file_pool);
+ if (file != NULL) {
+ memset(file, 0, sizeof *file);
+ }
+
+</code></pre>
+
+<hr />
+
+ </div>
+ </div>
+
+ <div class="row">
+ <footer>
+ <div class="row">
+ <div class="col-md-12">
+
+ <p class="copyright">Copyright © 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p>
+
+ </div>
+ </div>
+ <div class="copyright-logos">
+ <div class="row">
+ <div class="col-xs-6 text-right">
+ <img src="/img/apache-feather.png" alt="Apache" title="Apache">
+ </div>
+ <div class="col-xs-6 text-left">
+ <img src="/img/apache-logo.png" alt="Apache Incubator" title="Apache Incubator">
+ </div>
+ </div>
+ </div>
+ <div class="row">
+ <div class="col-md-12">
+ <small class="footnote">
+ MyNewt is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
+ </small>
+ </div>
+ </div>
+</footer>
+ </div>
+ </div>
+
+ <script src="../../../../js/jquery-1.10.2.min.js"></script>
+ <script src="../../../../js/bootstrap-3.0.3.min.js"></script>
+ <script src="../../../../js/highlight.pack.js"></script>
+ <script src="../../../../js/base.js"></script>
+ <script src="../../../../js/custom.js"></script>
+
+ </body>
+</html>
\ No newline at end of file