Language

Os.Mmap(Int64, Int64, Int32, Int32, FileDescriptor, Int64) Method

Definition

See mmap(2).

[Android.Runtime.Register("mmap", "(JJIILjava/io/FileDescriptor;J)J", "")]
public static long Mmap(long address, long byteCount, int prot, int flags, Java.IO.FileDescriptor? fd, long offset);
[<Android.Runtime.Register("mmap", "(JJIILjava/io/FileDescriptor;J)J", "")>]
static member Mmap : int64 * int64 * int * int * Java.IO.FileDescriptor * int64 -> int64

Parameters

address
Int64

The requested start address, or 0 to let the system choose. Its interpretation depends on flags.

byteCount
Int64

The length of the memory mapping, in bytes.

prot
Int32

The requested memory-protection flags.

flags
Int32

The mapping flags, including whether the mapping is shared, private or anonymous.

fd
FileDescriptor

The file to map; ignored for an anonymous mapping.

offset
Int64

The page-aligned byte offset within the file.

Returns

The start address of the new memory mapping.

Attributes

Exceptions

Remarks

See mmap(2).

Java documentation for android.system.Os.mmap(long, long, int, int, java.io.FileDescriptor, long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to