1<!-- Creator : groff version 1.22.2 --> 2<!-- CreationDate: Wed Feb 1 23:55:12 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 18</head> 19<body> 20 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 31<hr> 32 33 34<h2>NAME 35<a name="NAME"></a> 36</h2> 37 38 39 40<p style="margin-left:11%; margin-top: 1em">mtcp_destroy_context 41− destroy mTCP context</p> 42 43<h2>SYNOPSIS 44<a name="SYNOPSIS"></a> 45</h2> 46 47 48<p style="margin-left:11%; margin-top: 1em"><b>#include 49<mtcp_api.h></b></p> 50 51<p style="margin-left:11%; margin-top: 1em"><b>void 52mtcp_destroy_context(mctx_t</b> <i>mctx</i><b>);</b></p> 53 54<h2>DESCRIPTION 55<a name="DESCRIPTION"></a> 56</h2> 57 58 59 60<p style="margin-left:11%; margin-top: 1em"><b>mtcp_destroy_context</b>() 61cleans up the per-thread (with CPU core-id as specified in 62the <i>mctx</i> structure) mTCP context in the process. This 63is usually the last function called (specific to mTCP API) 64before the mTCP application thread is terminated from the 65process address space.</p> 66 67<h2>RETURN VALUE 68<a name="RETURN VALUE"></a> 69</h2> 70 71 72 73<p style="margin-left:11%; margin-top: 1em"><b>mtcp_destroy_context()</b> 74returns nothing.</p> 75 76<h2>AUTHORS 77<a name="AUTHORS"></a> 78</h2> 79 80 81<p style="margin-left:11%; margin-top: 1em">mOS development 82team <[email protected]></p> 83 84<h2>SEE ALSO 85<a name="SEE ALSO"></a> 86</h2> 87 88 89 90<p style="margin-left:11%; margin-top: 1em"><b>mtcp_create_context</b>(), 91<b>mtcp_init</b>(), <b>mtcp_destroy</b>()</p> 92 93<h2>COLOPHON 94<a name="COLOPHON"></a> 95</h2> 96 97 98<p style="margin-left:11%; margin-top: 1em">This page is 99part of mOS release 0.3 <i>docs</i> section. A description 100of the project, and information about reporting bugs, can be 101found at http://mos.kaist.edu/.</p> 102<hr> 103</body> 104</html> 105