Get the offset of a mapped typed memory block
#include <sys/mman.h>
int posix_mem_offset( const void * addr,
size_t length,
off_t * offset,
size_t * contig_len,
int * fd );
int posix_mem_offset64( const void * addr,
size_t length,
off64_t * offset,
size_t * contig_len,
int * fd );
libc
| The posix_mem_offset() and posix_mem_offset64() functions aren't currently supported. |
The posix_mem_offset() and posix_mem_offset64() functions set the variable pointed to by offset to the offset (or location), within a typed memory object, of the memory block currently mapped at addr.
-1 ( errno is set).
posix_mem_offset() is POSIX 1003.1j (draft); posix_mem_offset64() is for large-file support
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |
mem_offset(), mem_offset64(), mmap()