Changes in kernel/genarch/src/mm/page_ht.c [5e801dc:6404aca] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/mm/page_ht.c
r5e801dc r6404aca 54 54 55 55 static size_t ht_hash(const ht_link_t *); 56 static size_t ht_key_hash( constvoid *);57 static bool ht_key_equal( constvoid *, const ht_link_t *);56 static size_t ht_key_hash(void *); 57 static bool ht_key_equal(void *, const ht_link_t *); 58 58 static void ht_remove_callback(ht_link_t *); 59 59 … … 109 109 110 110 /** Return the hash of the key. */ 111 size_t ht_key_hash( constvoid *arg)112 { 113 const uintptr_t *key =arg;111 size_t ht_key_hash(void *arg) 112 { 113 uintptr_t *key = (uintptr_t *) arg; 114 114 size_t hash = 0; 115 115 hash = hash_combine(hash, key[KEY_AS]); … … 119 119 120 120 /** Return true if the key is equal to the item's lookup key. */ 121 bool ht_key_equal( constvoid *arg, const ht_link_t *item)122 { 123 const uintptr_t *key =arg;121 bool ht_key_equal(void *arg, const ht_link_t *item) 122 { 123 uintptr_t *key = (uintptr_t *) arg; 124 124 pte_t *pte = hash_table_get_inst(item, pte_t, link); 125 125 return (key[KEY_AS] == (uintptr_t) pte->as) &&
Note:
See TracChangeset
for help on using the changeset viewer.