lookup_hash() and lookup_one_len()

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

 



Hello,

What is the difference between lookup_hash() and lookup_one_len()?
Can I use them for the same purpose?

I was using lookup_hash(), but since kernel 2.6.15 changed
the parameters for lookup_hash(), I want to know whether
I can replace lookup_hash() with lookup_one_len() to avoid
"#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,15)" conditional code.
I found that using lookup_one_len() makes my code smaller
than lookup_hash(), but I'm worried that behavior might change.

Regards.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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