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

Changeset ada559c in mainline for kernel/genarch/src/mm/as_pt.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_pt.c

    rc8e99bb rada559c  
    5252static void pt_lock(as_t *, bool);
    5353static void pt_unlock(as_t *, bool);
     54static bool pt_locked(as_t *);
    5455
    5556as_operations_t as_pt_operations = {
     
    5758        .page_table_destroy = ptl0_destroy,
    5859        .page_table_lock = pt_lock,
    59         .page_table_unlock = pt_unlock
     60        .page_table_unlock = pt_unlock,
     61        .page_table_locked = pt_locked,
    6062};
    6163
     
    146148}
    147149
     150/** Test whether page tables are locked.
     151 *
     152 * @param as            Address space where the page tables belong.
     153 *
     154 * @return              True if the page tables belonging to the address soace
     155 *                      are locked, otherwise false.
     156 */
     157bool pt_locked(as_t *as)
     158{
     159        return mutex_locked(&as->lock);
     160}
     161
    148162/** @}
    149163 */
Note: See TracChangeset for help on using the changeset viewer.