[lkml]   [2005]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: p = kmalloc(sizeof(*p), )
On 9/19/05, Alan Cox <> wrote:
> > It would be very useful when e.g. tracking down improper uses of
> > struct file, struct dentry, etc. - stuff that should always be
> > allocated by one helper function. Same goes for e.g. net_device -
> Another useful trick here btw is to make such objects contain (when
> debugging)
> void *magic_ptr;
> which is initialised as foo->magic_ptr = foo;
> That catches anyone copying them and tells you what got copied

seems like C++ RTTI
Coywolf Qi Hunt
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-09-19 08:12    [W:0.857 / U:0.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site