Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset ada559c in mainline for kernel/genarch/src/mm/as_ht.c


Ignore:
Timestamp:
2010-05-30T21:11:39Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
a820bf7
Parents:
c8e99bb
Message:

Add page_table_locked() interface.

File:
1 edited

Legend:

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

    rc8e99bb rada559c  
    5151static void ht_lock(as_t *, bool);
    5252static void ht_unlock(as_t *, bool);
     53static bool ht_locked(as_t *);
    5354
    5455as_operations_t as_ht_operations = {
     
    5758        .page_table_lock = ht_lock,
    5859        .page_table_unlock = ht_unlock,
     60        .page_table_locked = ht_locked,
    5961};
    6062
     
    126128}
    127129
     130/** Test whether page tables are locked.
     131 *
     132 * @param as            Address space where the page tables belong.
     133 *
     134 * @return              True if the page tables belonging to the address soace
     135 *                      are locked, otherwise false.
     136 */
     137bool ht_locked(as_t *as)
     138{
     139        return (mutex_locked(&page_ht_lock) && mutex_locked(&as->lock));
     140}
     141
    128142/** @}
    129143 */
Note: See TracChangeset for help on using the changeset viewer.