函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:include\linux\mm.h Create Date:2022-07-27 06:44:41
首页 Copyright©Brick

714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
#else
static inline int total_mapcount(struct page *page)
{
    return page_mapcount(page);
}
static inline int page_trans_huge_mapcount(struct page *page,
                       int *total_mapcount)
{
    int mapcount = page_mapcount(page);
    if (total_mapcount)
        *total_mapcount = mapcount;
    return mapcount;
}
#endif
 
static inline struct page *virt_to_head_page(const void *x)
{
    struct page *page = virt_to_page(x);
 
    return compound_head(page);
}