folio_lock_killable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… folio_lock_killable(9)

okay so bestie, this one is straight from the Kernel API Manual, and it’s giving β€œlock the folio, but make the sleep interruptible by a fatal signal” πŸ’–


✨ NAME ✨

folio_lock_killable β€” lock this folio, interruptible by a fatal signal. πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

int folio_lock_killable (struct folio *folio );

🌸 ARGUMENTS 🌸

  • folio β€” the folio to lock. 🫢

πŸ’œ DESCRIPTION πŸ’œ

Attempts to lock the folio, like folio_lock, except that the sleep to acquire the lock is interruptible by a fatal signal. 😭✨

So yeah: same lock energy as folio_lock, but the little sleep can get interrupted by a fatal signal. That’s the whole vibe. πŸ’…

🧚 CONTEXT 🧚

May sleep; see folio_lock. 😴

πŸ‘‘ RETURN πŸ‘‘

  • 0 β€” the lock was acquired, slay. πŸ‘‘
  • -EINTR β€” a fatal signal was received. πŸ’€

🌈 SEE ALSO 🌈

Kernel file ./include/linux/pagemap.h and the whole friend group:


made with πŸ’– from source/version ./include/linux, dated October 2026, and filed under folio_lock_killable(9) β€” byeee πŸŽ€βœ¨

πŸ“¦ where this page comes from