mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-26 05:48:57 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@78496 c90b9560-bf6c-de11-be94-00142212c4b1
63 lines
1.8 KiB
XML
63 lines
1.8 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.2 $ -->
|
|
<!-- splitted from ./en/functions/shmop.xml, last change in rev 1.1 -->
|
|
<refentry id="function.shmop-size">
|
|
<refnamediv>
|
|
<refname>shmop_size</refname>
|
|
<refpurpose>Get size of shared memory block</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Description</title>
|
|
<methodsynopsis>
|
|
<type>int</type><methodname>shmop_size</methodname>
|
|
<methodparam><type>int</type><parameter>shmid</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>shmop_size</function> is used to get the size, in bytes of the
|
|
shared memory block.
|
|
</para>
|
|
<para>
|
|
<function>shmop_size</function> takes the shmid, which is the shared memory
|
|
block identifier created by <function>shmop_open</function>, the function
|
|
will return and int, which represents the number of bytes the shared memory
|
|
block occupies.
|
|
</para>
|
|
<para>
|
|
<example>
|
|
<title>Getting the size of the shared memory block</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$shm_size = shmop_size($shm_id);
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
<para>
|
|
This example will put the size of shared memory block identified by
|
|
<literal>$shm_id</literal> into <literal>$shm_size</literal>.
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|