Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/page-flags.h
| Show All 32 Lines | |||||
| #define PageHighMem(p) (0) | #define PageHighMem(p) (0) | ||||
| #define page_folio(p) \ | #define page_folio(p) \ | ||||
| (_Generic((p), \ | (_Generic((p), \ | ||||
| const struct page *: (const struct folio *)(p), \ | const struct page *: (const struct folio *)(p), \ | ||||
| struct page *: (struct folio *)(p))) | struct page *: (struct folio *)(p))) | ||||
| static inline struct page * | |||||
| folio_page(struct folio *folio, int n) | |||||
| { | |||||
| KASSERT(n == 0, ("%s: n = %d but only n = 0 supported\n", __func__, n)); | |||||
| return (&folio->page); | |||||
| } | |||||
| #endif /* _LINUXKPI_LINUX_PAGEFLAGS_H_ */ | #endif /* _LINUXKPI_LINUX_PAGEFLAGS_H_ */ | ||||