Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/mm/page_ht.c

    r5e801dc r0db0df2  
    5555static size_t ht_hash(const ht_link_t *);
    5656static size_t ht_key_hash(const void *);
    57 static bool ht_key_equal(const void *, const ht_link_t *);
     57static bool ht_key_equal(const void *, size_t, const ht_link_t *);
    5858static void ht_remove_callback(ht_link_t *);
    5959
     
    8282
    8383/** Hash table operations for page hash table. */
    84 hash_table_ops_t ht_ops = {
     84const hash_table_ops_t ht_ops = {
    8585        .hash = ht_hash,
    8686        .key_hash = ht_key_hash,
     
    9090
    9191/** Page mapping operations for page hash table architectures. */
    92 page_mapping_operations_t ht_mapping_operations = {
     92const page_mapping_operations_t ht_mapping_operations = {
    9393        .mapping_insert = ht_mapping_insert,
    9494        .mapping_remove = ht_mapping_remove,
     
    119119
    120120/** Return true if the key is equal to the item's lookup key. */
    121 bool ht_key_equal(const void *arg, const ht_link_t *item)
     121bool ht_key_equal(const void *arg, size_t hash, const ht_link_t *item)
    122122{
    123123        const uintptr_t *key = arg;
Note: See TracChangeset for help on using the changeset viewer.