summaryrefslogtreecommitdiffstats
path: root/runtime/docs/html/alloc_8h-source.html
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/docs/html/alloc_8h-source.html')
-rw-r--r--runtime/docs/html/alloc_8h-source.html53
1 files changed, 53 insertions, 0 deletions
diff --git a/runtime/docs/html/alloc_8h-source.html b/runtime/docs/html/alloc_8h-source.html
new file mode 100644
index 00000000..ba908655
--- /dev/null
+++ b/runtime/docs/html/alloc_8h-source.html
@@ -0,0 +1,53 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>alloc.h</h1><a href="alloc_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a><a class="code" href="alloc_8h.html#a7">00001</a> <span class="keyword">enum</span> <a class="code" href="alloc_8h.html#a7">errorcode</a> { <a class="code" href="alloc_8h.html#a7a0">ERR_NONE</a>=0, <a class="code" href="alloc_8h.html#a7a1">ERR_NO_MEM</a> };
+00002 <span class="keyword">enum</span> <a class="code" href="alloc_8h.html#a7">errorcode</a> _stp_error = ERR_NONE;
+00003
+<a name="l00012"></a><a class="code" href="alloc_8h.html#a2">00012</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> *<a class="code" href="alloc_8h.html#a2">_stp_alloc</a>(size_t len)
+00013 {
+00014 <span class="keywordtype">void</span> *ptr = kmalloc(len, GFP_ATOMIC);
+00015 <span class="keywordflow">if</span> (ptr == NULL)
+00016 _stp_error = ERR_NO_MEM;
+00017 <span class="keywordflow">return</span> ptr;
+00018 }
+00019
+<a name="l00028"></a><a class="code" href="alloc_8h.html#a3">00028</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> *<a class="code" href="alloc_8h.html#a3">_stp_calloc</a>(size_t len)
+00029 {
+00030 <span class="keywordtype">void</span> *ptr = <a class="code" href="alloc_8h.html#a2">_stp_alloc</a>(len);
+00031 <span class="keywordflow">if</span> (ptr)
+00032 memset(ptr, 0, len);
+00033 <span class="keywordflow">return</span> ptr;
+00034 }
+00035
+<a name="l00043"></a><a class="code" href="alloc_8h.html#a4">00043</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> *<a class="code" href="alloc_8h.html#a4">_stp_valloc</a>(size_t len)
+00044 {
+00045 <span class="keywordtype">void</span> *ptr = vmalloc(len);
+00046 <span class="keywordflow">if</span> (ptr)
+00047 memset(ptr, 0, len);
+00048 <span class="keywordflow">else</span>
+00049 _stp_error = ERR_NO_MEM;
+00050 <span class="keywordflow">return</span> ptr;
+00051 }
+00052
+<a name="l00057"></a><a class="code" href="alloc_8h.html#a5">00057</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="alloc_8h.html#a5">_stp_free</a>(<span class="keywordtype">void</span> *ptr)
+00058 {
+00059 <span class="keywordflow">if</span> (ptr)
+00060 kfree(ptr);
+00061 }
+00062
+<a name="l00067"></a><a class="code" href="alloc_8h.html#a6">00067</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="alloc_8h.html#a6">_stp_vfree</a>(<span class="keywordtype">void</span> *ptr)
+00068 {
+00069 <span class="keywordflow">if</span> (ptr)
+00070 vfree(ptr);
+00071 }
+</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>