nilfs_palloc_entry_offset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nilfs_palloc_entry_offset(9) β€” like, the kernel API manual one πŸŽ€

okay so bestie, welcome to nilfs_palloc_entry_offset(9), a genuinely iconic little function living in the Kernel API Manual. it does exactly one job and it does it flawlessly: it tells you where in the folio an entry actually sits. no cap. ✨


🌸 NAME 🌸

nilfs_palloc_entry_offset β€” calculate the byte offset of an entry in the folio containing it πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

size_t nilfs_palloc_entry_offset (const struct inode *inode , __u64 nr ,
const struct buffer_head *bh );

that's the whole signature, copy it exactly pls, she's precise πŸ’…


✨ ARGUMENTS ✨

  • inode β€” the inode of the metadata file that's using this allocator. yes, that one. πŸ‘‘
  • nr β€” the serial number of the entry (like, e.g. the inode number). it's a __u64, she's big. πŸ”₯
  • bh β€” the buffer head of the entry block. the whole squad is here. 🫢

⭐ RETURN ⭐

returns the byte offset in the folio of the entry nr. that's it, that's the tea. πŸ“


πŸ’œ SEE ALSO πŸ’œ

so like, nilfs_palloc_entry_offset(9) does not exist in a vacuum β€” she has a whole friend group. kernel file ./fs/nilfs2/alloc.c is the main character, and these are the besties iykyk:

like, thirty of them. she's popular. 🌈


πŸ’€ reminder bestie: every single one of those is (9) and spelled exactly like that, so don't get creative when you're grepping. πŸ™ˆ

and that's the page!! πŸŽ€ this lil beauty comes from ./fs/nilfs2, dated October 2026 β€” yeah, the future, she's ahead of her time πŸ§šπŸ’… mwah, go read alloc.c now, ily, bye!! πŸ’–βœ¨

πŸ“¦ where this page comes from