gfs2_unaligned_extlen(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, this is gfs2_unaligned_extlen(9) from the Kernel API Manual, and its whole mission is look for free blocks which are not byte aligned. That's the quest. That's the vibe. 🫢

πŸ¦‹ SYNOPSIS πŸ¦‹

bool gfs2_unaligned_extlen (struct gfs2_rbm *rbm , u32 n_unaligned , u32
*len );

Lowkey that line break is part of the signature's original look, so we're keeping it exactly. No cap. ✨

πŸ’… ARGUMENTS πŸ’…

  • rbm β€” Position to search (value/result). It's giving input-and-output energy: you hand over the spot, and it comes back updated. πŸŽ€
  • n_unaligned β€” Number of unaligned blocks to check. That's the count, bestie, no cap. πŸ”
  • len β€” Decremented for each block found (terminate on zero). Every find ticks it down, and when it hits 0, we stop. πŸ’€

🌸 RETURN 🌸

Returns true if a non-free block is encountered or the end of the resource group is reached. So if it hits a non-free block, or the resource group runs out, the answer is true. Periodt. πŸ’–

πŸŽ€ SEE ALSO πŸŽ€

Kernel file ./fs/gfs2/rgrp.c plus the whole function friend group, all together now:


xoxo, that's the whole page πŸ’… β€” source/version: ./fs/gfs2, dated October 2026. πŸ¦‹

πŸ“¦ where this page comes from