<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title><style type="text/css">
<!--
.style1 {font-size: 18px;font-weight: bold;font-family: Georgia, "Times New Roman", Times, serif;}
a{color:#0000cc;text-decoration:none}
a:visited{color:#0000cc;text-decoration:none}
-->
</style></head>
<body style="margin:0px 0px 0px 0px;">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#cccccc"><span class="style1" style="margin-left:5px">SHMDT</span></td>
</tr>
<tr>
<td><p style="margin-left:22px;margin-top:0px"><br />
Detach a shared memory segment located at the address specified by <em>ecx</em> from the address space of the calling process.<br />
The to-be-detached segment must be currently attached with <em>ecx</em> equal to the value returned by the attaching <a href="ipc_shmat.html">SHMAT</a> call. </p>
<p style="margin-left:10px"><strong>Arguments</strong></p>
<table width="100%" border="0" style="margin-left:20px; margin-right:20px">
<tr>
<td width="6%" valign="top"><em>ecx</em></td>
<td width="94%">Address of the process to be detached. </td>
</tr>
</table>
<p style="margin-left:10px" ><strong>Return values</strong></p>
<p style="margin-left:22px;margin-right:10px" >If the function succeeds the return value is 0.<br />
If the function fails the return value is -EINVAL meaning that there is no shared memory segment attached at the address specified by <em>ecx.</em></p>
<p style="margin-left:10px"><strong>Remarks</strong></p>
<p style="margin-left:22px">n/a</p>
</td>
</tr>
</table>
</body></html>