[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0801160831490.8188@schroedinger.engr.sgi.com>
Date: Wed, 16 Jan 2008 08:48:07 -0800 (PST)
From: Christoph Lameter <clameter@....com>
To: Johannes Weiner <hannes@...urebad.de>
cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
penberg@...helsinki.fi
Subject: Re: Why is the kfree() argument const?
On Wed, 16 Jan 2008, Johannes Weiner wrote:
> is there any reason why kfree() takes a const pointer just to degrade it
> with the call to slab_free()/__cache_free() again? The promise that the
> pointee is not modified is just bogus in this case, anyway, isn't it?
The object is modified in various cases f.e. because of poisoning or the
need to store the free pointer. So its bogus, yes. Pekka?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists