mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: Finding out whether memory was allocated with kmalloc or vmalloc
  2002-08-27  2:06 Finding out whether memory was allocated with kmalloc or vmalloc Michael Bellion
@ 2002-08-27  0:15 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2002-08-27  0:15 UTC (permalink / raw)
  To: Michael Bellion; +Cc: linux-kernel

On Tue, Aug 27, 2002 at 04:06:16AM +0200, Michael Bellion wrote:

> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Finding out whether memory was allocated with kmalloc or vmalloc
@ 2002-08-27  2:06 Michael Bellion
  2002-08-27  0:15 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Bellion @ 2002-08-27  2:06 UTC (permalink / raw)
  To: linux-kernel

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-08-27  0:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-27  2:06 Finding out whether memory was allocated with kmalloc or vmalloc Michael Bellion
2002-08-27  0:15 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®