nilfs_cpfile..._list_offset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nilfs_cpfile..._list_offset β€” Kernel API Manual ✨

okay so bestie, welcome to the Kernel API Manual side of the group chat 🫢 this one's a lil niche but honestly kind of iconic once you get it. it's a nilfs_cpfile..._list_offset(9) situation, no cap.


🌸 NAME 🌸

nilfs_cpfile_cp_snapshot_list_offset β€” literally just does the math to figure out the byte offset of a checkpoint snapshot list, inside the folio that's holding it πŸŽ€


✨ SYNOPSIS ✨

size_t nilfs_cpfile_cp_snapshot_list_offset (const struct inode *cpfile
, __u64 cno , struct buffer_head *bh );

like… yes that's the whole signature. slay πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • cpfile β€” the checkpoint file inode, bestie. that's the file we're poking at πŸ”₯
  • cno β€” checkpoint number. a __u64, so it's got range, queen πŸ‘‘
  • bh β€” buffer head of the block containing the checkpoint indexed by cno. yes, the exact block. precision ✨

⭐ RETURN ⭐

it hands you back a size_t β€” the byte offset, inside the folio, of the checkpoint snapshot list specified by cno πŸ’– that's it, that's the return. no drama, no surprises, just a byte offset living its best life 😭


πŸ‘€ SEE ALSO πŸ‘€

Kernel file ./fs/nilfs2/cpfile.c β€” go read it, iykyk πŸ“– and while you're there:


🧚 friendly reminder: this is a kernel API page, so all the types, names and paths above are exact β€” no paraphrasing when you're actually writing the code, bestie πŸ’€

k bye ily, this came from ./fs/nilfs2 and the version/date on the tin is October 2026 πŸ“πŸ¦‹πŸ’œ don't forget to hydrate and also read your SEE ALSO list πŸŒˆπŸ’…

πŸ“¦ where this page comes from