cregit-Linux how code gets into the kernel

Release 4.7 include/linux/page_idle.h

Directory: include/linux
#ifndef _LINUX_MM_PAGE_IDLE_H

#define _LINUX_MM_PAGE_IDLE_H

#include <linux/bitops.h>
#include <linux/page-flags.h>
#include <linux/page_ext.h>

#ifdef CONFIG_IDLE_PAGE_TRACKING

#ifdef CONFIG_64BIT

static inline bool page_is_young(struct page *page) { return PageYoung(page); }

Contributors

PersonTokensPropCommitsCommitProp
vladimir davydovvladimir davydov18100.00%1100.00%
Total18100.00%1100.00%


static inline void set_page_young(struct page *page) { SetPageYoung(page); }

Contributors

PersonTokensPropCommitsCommitProp
vladimir davydovvladimir davydov17100.00%1100.00%
Total17100.00%1100.00%


static inline bool test_and_clear_page_young(struct page *page) { return TestClearPageYoung(page); }

Contributors

PersonTokensPropCommitsCommitProp
vladimir davydovvladimir davydov18100.00%1100.00%
Total18100.00%1100.00%


static inline bool page_is_idle(struct page *page) { return PageIdle(page); }

Contributors

PersonTokensPropCommitsCommitProp
vladimir davydovvladimir davydov18100.00%1100.00%
Total18100.00%1100.00%


static inline void set_page_idle(struct page *page) { SetPageIdle(page); }

Contributors

PersonTokensPropCommitsCommitProp
vladimir davydovvladimir davydov17100.00%1100.00%
Total17100.00%1100.00%


static inline void clear_page_idle(struct page *page) { ClearPageIdle(page); }

Contributors

PersonTokensPropCommitsCommitProp
vladimir davydovvladimir davydov17100.00%1100.00%
Total17100.00%1100.00%

#else /* !CONFIG_64BIT */ /* * If there is not enough space to store Idle and Young bits in page flags, use * page ext flags instead. */ extern struct page_ext_operations page_idle_ops;
static inline bool page_is_young(struct page *page) { struct page_ext *page_ext = lookup_page_ext(page); if (unlikely(!page_ext)) return false; return test_bit(PAGE_EXT_YOUNG, &page_ext->flags); }

Contributors

PersonTokensPropCommitsCommitProp
yang shiyang shi2250.00%150.00%
vladimir davydovvladimir davydov2250.00%150.00%
Total44100.00%2100.00%


static inline void set_page_young(struct page *page) { struct page_ext *page_ext = lookup_page_ext(page); if (unlikely(!page_ext)) return; set_bit(PAGE_EXT_YOUNG, &page_ext->flags); }

Contributors

PersonTokensPropCommitsCommitProp
vladimir davydovvladimir davydov2151.22%150.00%
yang shiyang shi2048.78%150.00%
Total41100.00%2100.00%


static inline bool test_and_clear_page_young(struct page *page) { struct page_ext *page_ext = lookup_page_ext(page); if (unlikely(!page_ext)) return false; return test_and_clear_bit(PAGE_EXT_YOUNG, &page_ext->flags); }

Contributors

PersonTokensPropCommitsCommitProp
vladimir davydovvladimir davydov2250.00%150.00%
yang shiyang shi2250.00%150.00%
Total44100.00%2100.00%


static inline bool page_is_idle(struct page *page) { struct page_ext *page_ext = lookup_page_ext(page); if (unlikely(!page_ext)) return false; return test_bit(PAGE_EXT_IDLE, &page_ext->flags); }

Contributors

PersonTokensPropCommitsCommitProp
yang shiyang shi2250.00%150.00%
vladimir davydovvladimir davydov2250.00%150.00%
Total44100.00%2100.00%


static inline void set_page_idle(struct page *page) { struct page_ext *page_ext = lookup_page_ext(page); if (unlikely(!page_ext)) return; set_bit(PAGE_EXT_IDLE, &page_ext->flags); }

Contributors

PersonTokensPropCommitsCommitProp
vladimir davydovvladimir davydov2151.22%150.00%
yang shiyang shi2048.78%150.00%
Total41100.00%2100.00%


static inline void clear_page_idle(struct page *page) { struct page_ext *page_ext = lookup_page_ext(page); if (unlikely(!page_ext)) return; clear_bit(PAGE_EXT_IDLE, &page_ext->flags); }

Contributors

PersonTokensPropCommitsCommitProp
vladimir davydovvladimir davydov2151.22%150.00%
yang shiyang shi2048.78%150.00%
Total41100.00%2100.00%

#endif /* CONFIG_64BIT */ #else /* !CONFIG_IDLE_PAGE_TRACKING */
static inline bool page_is_young(struct page *page) { return false; }

Contributors

PersonTokensPropCommitsCommitProp
vladimir davydovvladimir davydov15100.00%1100.00%
Total15100.00%1100.00%


static inline void set_page_young(struct page *page) { }

Contributors

PersonTokensPropCommitsCommitProp
vladimir davydovvladimir davydov11100.00%1100.00%
Total11100.00%1100.00%


static inline bool test_and_clear_page_young(struct page *page) { return false; }

Contributors

PersonTokensPropCommitsCommitProp
vladimir davydovvladimir davydov15100.00%1100.00%
Total15100.00%1100.00%


static inline bool page_is_idle(struct page *page) { return false; }

Contributors

PersonTokensPropCommitsCommitProp
vladimir davydovvladimir davydov15100.00%1100.00%
Total15100.00%1100.00%


static inline void set_page_idle(struct page *page) { }

Contributors

PersonTokensPropCommitsCommitProp
vladimir davydovvladimir davydov11100.00%1100.00%
Total11100.00%1100.00%


static inline void clear_page_idle(struct page *page) { }

Contributors

PersonTokensPropCommitsCommitProp
vladimir davydovvladimir davydov11100.00%1100.00%
Total11100.00%1100.00%

#endif /* CONFIG_IDLE_PAGE_TRACKING */ #endif /* _LINUX_MM_PAGE_IDLE_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
vladimir davydovvladimir davydov35473.75%150.00%
yang shiyang shi12626.25%150.00%
Total480100.00%2100.00%
Directory: include/linux
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}