is_highmem(9)
πΈ NAME πΈ
Okay so bestie, welcome to the manual page for is_highmem(9) π. is_highmem is a helper function that quickly checks if a struct zone is a highmem zone or not. This is an attempt to keep references to ZONE_{DMA/NORMAL/HIGHMEM/etc} in general code to a minimum. Periodt. β¨
β¨ SYNOPSIS β¨
Here's the signature, exactly as it is, because we do not mess with code in this house π«Ά:
int is_highmem (const struct zone *zone );
π ARGUMENTS π
zoneβ pointer to astruct zonevariable. That's the whole argument, bestie.
π₯ RETURN π₯
1for a highmem zone.0otherwise.
π¦ SEE ALSO π¦
The kernel file to peek at is ./include/linux/mmzone.h π. Also go hang out with:
for_each_online_pgdat(9)for_each_zone(9)next_zones_zonelist(9)first_zones_zonelist(9)for_each_zone_zonelist_nodemask(9)for_each_zone_zonelist(9)pfn_valid(9)
Bye bestie π β source/version: ./include/linux, date: October 2026. Slay. πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms