how to use hashmap in kernel module?

Daniel Baluta daniel.baluta at gmail.com
Mon Sep 19 03:14:09 EDT 2011


On Mon, Sep 19, 2011 at 9:23 AM, Jon Zhou <Jon.Zhou at jdsu.com> wrote:
> Hi
>
> I want to hashmap to store datat in kernel module, how can I do this? Any existed code?
Hello,

There are a lot of places where hashes are used. Just grep for 'hash'
 through the kernel sources.

For example have a look at futex_queues [1].

thanks,
Daniel.

[1] http://lxr.linux.no/linux+v3.0.4/kernel/futex.c#L150



More information about the Kernelnewbies mailing list