lkml.org 
[lkml]   [2008]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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?




\
 
 \ /
  Last update: 2008-01-16 17:51    [W:0.176 / U:1.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site