nilfs_cpfile..._list_offset(9)
π 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 bycno. 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:
nilfs_cpfile_checkpoint_offset(9)nilfs_cpfile_ch_snapshot_list_offset(9)nilfs_cpfile_find_checkpoint_block(9)nilfs_cpfile_read_checkpoint(9)nilfs_cpfile_create_checkpoint(9)nilfs_cpfile_finalize_checkpoint(9)nilfs_cpfile_delete_checkpoints(9)nilfs_cpfile_get_cpinfo(9)nilfs_cpfile_delete_checkpoint(9)nilfs_cpfile_is_snapshot(9)nilfs_cpfile_change_cpmode(9)nilfs_cpfile_get_stat(9)nilfs_cpfile_read(9)
π§ 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms