folio_xor_flags_has_waiters(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… folio_xor_flags_has_waiters(9)

okay so bestie, we're in the Kernel API Manual today and this one's literally called folio_xor_flags_has_waiters β€” say that five times fast, i dare you 😭


✨ NAME ✨

folio_xor_flags_has_waiters β€” flips some folio flags, and also tells you if anybody's waiting 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

bool folio_xor_flags_has_waiters (struct folio *folio , unsigned long mask );

πŸŽ€ ARGUMENTS πŸŽ€

  • folio β€” the folio in question, the main character of this whole function πŸ’–
  • mask β€” every bit you set in this word is gonna get changed. that's the whole vibe πŸ”₯

🌸 DESCRIPTION 🌸

okay so hear me out, because this one has rules and you need to respect them, no cap:

  • it must only be used for flags that get changed while the folio lock is held πŸ”’
  • example of what NOT to do: PG_dirty, because that one can be set without the folio lock held, so using this on it is unsafe πŸ’€
  • it can also only be used on flags in the range 0-6, because some of the implementations only affect those bits. so like, stay in your lane, bestie ✨
fr fr do not ignore these constraints, they are not decorative 🚨

⭐ RETURN ⭐

it returns whether there are tasks waiting on the folio πŸ‘€ β€” yes, the "has_waiters" part of the name was not a lie, iconic naming honestly πŸ‘‘


🌈 SEE ALSO 🌈

kernel file ./include/linux/page-flags.h, plus these little icons:


and that's the whole page, bestie, you ate that πŸ“

sign-off time: this gem lives over in ./include/linux, dated October 2026, and it's folio_xor_flags_has_waiters(9) β€” periodt πŸ’œ

πŸ“¦ where this page comes from