diff options
author | guy Decoux <ts@moulon.inra.fr> | 2009-02-28 20:04:27 +0100 |
---|---|---|
committer | guy Decoux <ts@moulon.inra.fr> | 2009-02-28 20:04:27 +0100 |
commit | 375efb32b274d134db753d1550e7bafcfac44c6e (patch) | |
tree | 353d4efd7efa5aaaae7b848b7094005a6d8e74cb /mmap.html | |
parent | 5ddb005992b57f89ee974c22b89a91f06e7fc2e3 (diff) | |
download | mmap-ruby-375efb32b274d134db753d1550e7bafcfac44c6e.zip mmap-ruby-375efb32b274d134db753d1550e7bafcfac44c6e.tar.gz |
mmap-0.1.2
Diffstat (limited to 'mmap.html')
-rw-r--r-- | mmap.html | 28 |
1 files changed, 27 insertions, 1 deletions
@@ -31,6 +31,13 @@ Object <H2><A NAME="label:4">Class Methods </A></H2><!-- RDLabel: "Class Methods" --> <DL> +<DT><A NAME="lockall"><CODE>lockall(<var>flag</var>)</CODE></A><!-- RDLabel: "lockall" --> +<DD> +<P> +disable paging of all pages mapped. <VAR>flag</VAR> can be +<VAR>Mmap::MCL_CURRENT</VAR> or <VAR>Mmap::MCL_FUTURE</VAR> +</P> +</DD> <DT><A NAME="new"><CODE>new(<var>file</var>, [<var>mode</var> [, <var>protection</var> [, <var>options</var>]]])</CODE></A><!-- RDLabel: "new" --> <DD> <P> @@ -42,7 +49,8 @@ create a new object </A><!-- RDLabel: "file" --> <DD> <P> -Pathname of the file +Pathname of the file, if <VAR>nil</VAR> is given an anonymous map +is created <VAR>Mmanp::MAP_ANON</VAR> </P> </DD> <DT><A NAME="label:8"><VAR>mode</VAR> @@ -114,6 +122,12 @@ The type of the access (see #madvise) </DD> </DL> </DD> +<DT><A NAME="unlockall"><CODE>unlockall</CODE></A><!-- RDLabel: "unlockall" --> +<DD> +<P> +reenable paging +</P> +</DD> </DL> <H2><A NAME="label:5">Methods </A></H2><!-- RDLabel: "Methods" --> @@ -138,6 +152,12 @@ add <VAR>count</VAR> bytes to the file (i.e. pre-extend the file) change the mode, value must be "r", "w" or "rw" </P> </DD> +<DT><A NAME="mlock"><CODE>mlock</CODE></A><!-- RDLabel: "mlock" --> +<DD> +<P> +disable paging +</P> +</DD> <DT><A NAME="msync"><CODE>msync</CODE></A><!-- RDLabel: "msync" --> <DT><A NAME="flush"><CODE>flush</CODE></A><!-- RDLabel: "flush" --> <DD> @@ -145,6 +165,12 @@ change the mode, value must be "r", "w" or "rw" flush the file </P> </DD> +<DT><A NAME="munlock"><CODE>munlock</CODE></A><!-- RDLabel: "munlock" --> +<DD> +<P> +reenable paging +</P> +</DD> <DT><A NAME="munmap"><CODE>munmap</CODE></A><!-- RDLabel: "munmap" --> <DD> <P> |