Re: how to do realloc in kernel?

From: Hari Krishna (hari@iitg.ernet.in)
Date: Thu Feb 03 2000 - 10:36:47 EST


Yes i know the old_size, but there are several pointers in my program
which r using realloc's..(actually im trying to implement the samba
server inside the kernel, following parts of samba code). as reallocs
r quiet common in normal c code., i'm searching for a equivalent of it in
the kernel. any suggestions?

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

On Thu, 3 Feb 2000, Jan-Simon Pendry wrote:

> if you don't know what old_size was, how do you know whether or
> not you need to realloc?
>
> jan-simon.
>
> Hari Krishna wrote:
> >
> > 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.

-
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