Finding out whether memory was allocated with kmalloc or vmalloc
Hi,
given a pointer p, is there an easy and platform independent way to find out, whether the memory location that p points to was allocated with kmalloc or vmalloc?
Thanks
Michael Bellion
Quoted 3 lines · Michael Bellion
given a pointer p, is there an easy and platform independent way to find out, whether the memory location that p points to was allocated with kmalloc or vmalloc?
Vmalloc'ed memory has a virtual address VMALLOC_START <= x < VMALLOC_END.
Ralf