#include <linux/ceph/types.h> #include <linux/module.h> /* * Robert Jenkin's hash function. * https://burtleburtle.net/bob/hash/evahash.html * This is in the public domain. */ #define mix(a, b, c) … unsigned int ceph_str_hash_rjenkins(const char *str, unsigned int length) { … } /* * linux dcache hash */ unsigned int ceph_str_hash_linux(const char *str, unsigned int length) { … } unsigned int ceph_str_hash(int type, const char *s, unsigned int len) { … } EXPORT_SYMBOL(…); const char *ceph_str_hash_name(int type) { … } EXPORT_SYMBOL(…);