[haiku-development] Re: fs API: get_vnode limitation

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 11 Jul 2010 11:06:03 +0200

On 2010-07-11 at 06:42:18 [+0200], Janito Ferreira Filho 
<jvffprog@xxxxxxxxxxx> wrote:
> > lucian.grijincu@xxxxxxxxx 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

Other related posts: