Re: how to use hashmap in kernel module?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 19, 2011 at 9:23 AM, Jon Zhou <Jon.Zhou@xxxxxxxx> 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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux