[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haiku-development
Subject:    [haiku-development] Re: fs API: get_vnode limitation
From:       Ingo Weinhold <ingo_weinhold () gmx ! de>
Date:       2010-07-11 9:06:03
Message-ID: 20100711110603.406.2 () knochen-vm ! localdomain
[Download RAW message or body]


On 2010-07-11 at 06:42:18 [+0200], Janito Ferreira Filho 
<jvffprog@hotmail.com> wrote:
> > lucian.grijincu@gmail.com wrote:
> > 
> > B) add a hashmap inside my driver. The lookup() hook would insert
> > (ino_t, full_path) entries in the hashmap, and the get_vnode() hook
> > will access this hashmap to retrieve the corresponding full_path. All
> > the locking involved would
> 
> Don't know if this helps, but there is a hash table implementation in the 
> kernel
> (util/khash.h) that also grows as needed,

That class is kind of obsolete and going to be phased out eventually. 
util/OpenHashTable.h should be used instead.

CU, Ingo

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic