函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:include\linux\mm_types.h Create Date:2022-07-27 06:40:00
首页 Copyright©Brick

617
618
619
620
621
622
623
624
625
626
627
628
static inline bool mm_tlb_flush_pending(struct mm_struct *mm)
{
    /*
     * Must be called after having acquired the PTL; orders against that
     * PTLs release and therefore ensures that if we observe the modified
     * PTE we must also observe the increment from inc_tlb_flush_pending().
     *
     * That is, it only guarantees to return true if there is a flush
     * pending for _this_ PTL.
     */
    return atomic_read(&mm->tlb_flush_pending);
}