Re: how to do realloc in kernel?

From: Hari Krishna (hari@iitg.ernet.in)
Date: Thu Feb 03 2000 - 09:42:42 EST


Thanks,
        but its difficult to keep track of old_size, is there any
other way to get the old_size, than getting it from the vmlist?

HARI.
==============================================================================

On Thu, 3 Feb 2000, Jeff Garzik wrote:

> On Thu, 3 Feb 2000, Hari Krishna wrote:
> > is there any kernel function to do realloc for the pointers assigned by
> > vmalloc or kmalloc?
>
> new_mem = foo_malloc(new_size)
> memcpy (new_mem, old_mem, old_size)
> foo_free(old_mem)
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Feb 07 2000 - 21:00:09 EST