LinuxKPI: Implement linux/hashtable.h for FreeBSD.
authorHans Petter Selasky <hselasky@FreeBSD.org>
Tue, 10 May 2022 12:16:20 +0000 (14:16 +0200)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Thu, 12 May 2022 14:32:47 +0000 (16:32 +0200)
commitf9e90c24737f96ab97ad534d925fe37a7f0a6f58
treec026eaf9209d3dcd7c996f2e0f1e89e055aa2060
parent5326ebfd05c57b9432cb1ea7268f789559ba1e25
LinuxKPI: Implement linux/hashtable.h for FreeBSD.

This implementation uses the concurrency kit, CK, API directly which is
suitable for use with EPOCH(9) and RCU under FreeBSD.

No functional change intended.

The initial "linux/hash.h" code was obtained from DragonFlyBSD via
FreeBSD's drm-kmod in ports.

Differential Revision: https://reviews.freebsd.org/D35162
Reviewed by: bz@ and markj@
MFC after: 1 week
Sponsored by: NVIDIA Networking
sys/compat/linuxkpi/common/include/linux/hash.h [new file with mode: 0644]
sys/compat/linuxkpi/common/include/linux/hashtable.h [new file with mode: 0644]