Changeset f5935ed in mainline for genarch/src/mm/page_ht.c


Ignore:
Timestamp:
2006-02-06T15:09:58Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
021d471
Parents:
c7ec94a4
Message:

Use hash_table_get_instance instead of list_get_instance.
Rename page_operations to page_mapping_operations.
Rename page_pt_operations to pt_mapping_operations.
Rename page_ht_operations to ht_mapping_operations.

File:
1 edited

Legend:

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

    rc7ec94a4 rf5935ed  
    6868};
    6969
    70 page_operations_t page_ht_operations = {
     70/** Page mapping operations for page hash table architectures. */
     71page_mapping_operations_t ht_mapping_operations = {
    7172        .mapping_insert = ht_mapping_insert,
    7273        .mapping_find = ht_mapping_find
     
    120121         * Convert item to PTE.
    121122         */
    122         t = list_get_instance(item, pte_t, link);
     123        t = hash_table_get_instance(item, pte_t, link);
    123124
    124125        if (keys == PAGE_HT_KEYS) {
     
    142143         * Convert item to PTE.
    143144         */
    144         t = list_get_instance(item, pte_t, link);
     145        t = hash_table_get_instance(item, pte_t, link);
    145146
    146147        free(t);
     
    200201        hlp = hash_table_find(&page_ht, key);
    201202        if (hlp)
    202                 t = list_get_instance(hlp, pte_t, link);
     203                t = hash_table_get_instance(hlp, pte_t, link);
    203204
    204205        spinlock_unlock(&page_ht_lock);
Note: See TracChangeset for help on using the changeset viewer.