Changeset 61eb2ce2 in mainline for kernel/generic/include


Ignore:
Timestamp:
2023-02-05T22:03:19Z (3 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b596d0d
Parents:
07700ed
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-05 22:01:46)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-05 22:03:19)
Message:

Make hash table operations immutable, because global mutable state is evil

Location:
kernel/generic/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/adt/hash_table.h

    r07700ed r61eb2ce2  
    7373/** Hash table structure. */
    7474typedef struct {
    75         hash_table_ops_t *op;
     75        const hash_table_ops_t *op;
    7676        list_t *bucket;
    7777        size_t bucket_cnt;
     
    8686
    8787extern bool hash_table_create(hash_table_t *, size_t, size_t,
    88     hash_table_ops_t *);
     88    const hash_table_ops_t *);
    8989extern void hash_table_destroy(hash_table_t *);
    9090
  • kernel/generic/include/mm/as.h

    r07700ed r61eb2ce2  
    307307extern as_t *AS_KERNEL;
    308308
    309 extern as_operations_t *as_operations;
     309extern const as_operations_t *as_operations;
    310310extern list_t inactive_as_with_asid_list;
    311311
  • kernel/generic/include/mm/page.h

    r07700ed r61eb2ce2  
    5353} page_mapping_operations_t;
    5454
    55 extern page_mapping_operations_t *page_mapping_operations;
     55extern const page_mapping_operations_t *page_mapping_operations;
    5656
    5757extern void page_init(void);
Note: See TracChangeset for help on using the changeset viewer.