dax_lock_folio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ dax_lock_folio(9) β€” Kernel API Manual πŸ¦‹

okay so bestie, this is the dax_lock_folio page from the Kernel API Manual, and it’s giving β€œtiny but important” energy. let’s get into it. πŸ’–


✨ NAME ✨

dax_lock_folio β€” Lock the DAX entry corresponding to a folio. slay, that’s the whole name section. πŸ’…

πŸ’… SYNOPSIS πŸ’…

dax_entry_t dax_lock_folio (struct folio *folio );

that’s the signature, exactly as written. no edits, no β€œfixing” the spacing, no cap. 🫢

πŸŽ€ ARGUMENTS πŸŽ€

  • folio β€” The folio whose entry we want to lock. that’s the one, bestie. πŸ¦‹

🌸 CONTEXT 🌸

Process context. that’s it, that’s the context. ✨

πŸ”₯ RETURN πŸ”₯

A cookie to pass to dax_unlock_folio, or 0 if the entry could not be locked. so yeah β€” cookie means you’re in business, 0 means that entry could not be locked. 😭

🌈 SEE ALSO 🌈

Kernel file ./fs/dax.c, plus the whole friend group:


bye bestie 🫢 this page comes from ./fs, dated October 2026, and it’s all about dax_lock_folio(9) β€” periodt. πŸ’–βœ¨

πŸ“¦ where this page comes from