What is the function to get address of the virtual memory block in linux??

I want address of current virtual memory block?
i am using fedora10:wall::wall:

The address of a block returned by malloc or realloc in the GNU system is always a multiple of eight (or sixteen on 64-bit systems). If you need a block whose address is a multiple of a higher power of two than that, use memalign, posix_memalign, or valloc. These functions are declared in `stdlib.h'

The GNU C Library - Virtual Memory Allocation And Paging

1 Like