nilfs_palloc...ailable_slot(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME

nilfs_palloc_find_available_slot β€” bestie, this is the one that goes hunting for an available slot in a group ✨


πŸŽ€ SYNOPSIS

int nilfs_palloc_find_available_slot (unsigned char *bitmap , unsigned long target , unsigned int bsize , spinlock_t *lock , bool wrap );

🌸 ARGUMENTS

  • bitmap β€” the bitmap of the group. yeah. the actual map of bits. it's giving "where the free seats are" πŸ’–
  • target β€” the offset number of an entry in the group, aka your start point. like, begin the search here, queen πŸ‘‘
  • bsize β€” size in bits. that's it, that's the number 🌈
  • lock β€” a spin lock protecting the bitmap. do not forget this one, fr fr, it's literally guarding the bitmap for you 🫢
  • wrap β€” whether to wrap around. yes or no. circle back or don't πŸ”

⭐ RETURN

Returns the offset number within the group of the found free entry πŸ’« … or -ENOSPC if it's not found 😭 (no free seats, soz).


πŸ¦‹ SEE ALSO

Kernel file ./fs/nilfs2/alloc.c β€” and like, the whole extended fam 🧚, all of these icons:


okay that's the whole page, no notes πŸ’… this one lives in ./fs/nilfs2 and it's dated October 2026, so yeah, future-coded of it 🌸 stay slay, go find those free slots, mwah πŸŽ€πŸ’–

πŸ“¦ where this page comes from