Merge tag 'selinux-pr-20200601' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / security / selinux / ss / hashtab.h
index dde54d9ff01c7e9d4994368dd3b731e82d217f38..31c11511fe100b8078839582bf51dea7718e1a14 100644 (file)
@@ -35,14 +35,15 @@ struct hashtab_info {
 };
 
 /*
- * Creates a new hash table with the specified characteristics.
+ * Initializes a new hash table with the specified characteristics.
  *
- * Returns NULL if insufficent space is available or
- * the new hash table otherwise.
+ * Returns -ENOMEM if insufficient space is available or 0 otherwise.
  */
-struct hashtab *hashtab_create(u32 (*hash_value)(struct hashtab *h, const void *key),
-                              int (*keycmp)(struct hashtab *h, const void *key1, const void *key2),
-                              u32 nel_hint);
+int hashtab_init(struct hashtab *h,
+                u32 (*hash_value)(struct hashtab *h, const void *key),
+                int (*keycmp)(struct hashtab *h, const void *key1,
+                              const void *key2),
+                u32 nel_hint);
 
 /*
  * Inserts the specified (key, datum) pair into the specified hash table.