1<!-- Creator     : groff version 1.22.2 -->
2<!-- CreationDate: Wed Feb  1 22:24:31 2017 -->
3<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
4"http://www.w3.org/TR/html4/loose.dtd">
5<html>
6<head>
7<meta name="generator" content="groff -Thtml, see www.gnu.org">
8<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
9<meta name="Content-Style" content="text/css">
10<style type="text/css">
11       p       { margin-top: 0; margin-bottom: 0; vertical-align: top }
12       pre     { margin-top: 0; margin-bottom: 0; vertical-align: top }
13       table   { margin-top: 0; margin-bottom: 0; vertical-align: top }
14       h1      { text-align: center }
15</style>
16<title>mtcp_destroy_context</title>
17<link rel="stylesheet" href="./common.css">
18</head>
19<body>
20<div class="main">
21<h1 align="center">mtcp_destroy_context</h1>
22<!--
23<a href="#NAME">NAME</a><br>
24<a href="#SYNOPSIS">SYNOPSIS</a><br>
25<a href="#DESCRIPTION">DESCRIPTION</a><br>
26<a href="#RETURN VALUE">RETURN VALUE</a><br>
27<a href="#AUTHORS">AUTHORS</a><br>
28<a href="#SEE ALSO">SEE ALSO</a><br>
29<a href="#COLOPHON">COLOPHON</a><br>
30<hr>-->
31
32
33<h2>NAME
34<a name="NAME"></a>
35</h2>
36
37
38
39<p style="margin-left:11%; margin-top: 1em">mtcp_destroy_context
40&minus; destroy mTCP context</p>
41
42<h2>SYNOPSIS
43<a name="SYNOPSIS"></a>
44</h2>
45
46
47<p style="margin-left:11%; margin-top: 1em"><b>#include
48&lt;mtcp_api.h&gt;</b></p>
49
50<p style="margin-left:11%; margin-top: 1em"><b>void
51mtcp_destroy_context(mctx_t</b> <i>mctx</i><b>);</b></p>
52
53<h2>DESCRIPTION
54<a name="DESCRIPTION"></a>
55</h2>
56
57
58
59<p style="margin-left:11%; margin-top: 1em"><b>mtcp_destroy_context</b>()
60cleans up the per-thread (with CPU core-id as specified in
61the <i>mctx</i> structure) mTCP context in the process. This
62is usually the last function called (specific to mTCP API)
63before the mTCP application thread is terminated from the
64process address space.</p>
65
66<h2>RETURN VALUE
67<a name="RETURN VALUE"></a>
68</h2>
69
70
71
72<p style="margin-left:11%; margin-top: 1em"><b>mtcp_destroy_context()</b>
73returns nothing.</p>
74
75<h2>AUTHORS
76<a name="AUTHORS"></a>
77</h2>
78
79
80<p style="margin-left:11%; margin-top: 1em">mOS
81development team &lt;[email protected]&gt;</p>
82
83
84<!----------------------------------------------------------->
85<h2>EXAMPLES
86<a name="EXAMPLES"></a>
87</h2>
88
89<p style="margin-left:11%; margin-top: 1em">
90  <a href="http://mos.kaist.edu/guide/programmer/05_api_example.html#application-destroy-routine">
91	http://mos.kaist.edu/guide/programmer/05_api_example.html#application-destroy-routine
92	</a>
93</p>
94<!----------------------------------------------------------->
95
96
97<h2>SEE ALSO
98<a name="SEE ALSO"></a>
99</h2>
100
101
102
103<p style="margin-left:11%; margin-top: 1em"><b>mtcp_create_context</b>(),
104<b>mtcp_init</b>(), <b>mtcp_destroy</b>()</p>
105
106<h2>COLOPHON
107<a name="COLOPHON"></a>
108</h2>
109
110
111<p style="margin-left:11%; margin-top: 1em">This page is
112part of mOS release 0.3 <i>docs</i> section. A description
113of the project, and information about reporting bugs, can be
114found at http://mos.kaist.edu/.</p>
115<!-- <hr>-->
116<br>
117<div class="footer">
118  <img src="back-arrow.jpg" width="2%" height="2%"><a href="http://mos.kaist.edu/index_man.html">Back to Index</a>
119</div>
120</div>
121</body>
122</html>
123