lkml.org 
[lkml]   [2011]   [Dec]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 1/4] Add routine for generating an ID for kernel pointer
On Wed, Dec 28, 2011 at 04:51:14PM +0000, Alan Cox wrote:
> > + be used for anything but the "sameness" test. Besides, the IDs are
> > + dynamic and valid only while object is alive, once it get freed or
>
> Please explain your locking model which ensures a false sameness cannot
> occur due to object reuse as you do the comparison and scan.
>

It can happen in case of object re-allocated from slab. But in case
of two living pids it's impossible to get same pointers for different
objects. Or I misunderstood the question, Alan? It's up to application
to not compare objects from dead tasks.

Cyrill


\
 
 \ /
  Last update: 2011-12-28 18:07    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog