nilfs_cpfile...point_offset(9)
β¨ NAME β¨
nilfs_cpfile_checkpoint_offset β bestie, this is the glow-up function that calculates the byte offset of a checkpoint entry inside the folio that's holding it π
(yes, it's a Kernel API Manual situation, and yes, we're gonna get through it together π«Ά)
πΈ SYNOPSIS πΈ
size_t nilfs_cpfile_checkpoint_offset (const struct inode *cpfile ,
__u64 cno , struct buffer_head *bh );
π ARGUMENTS π
cpfileβ the checkpoint file inode, aka the main character of this whole operation πcnoβ the checkpoint number, like the lil ID tag for the checkpoint you're curious about π·οΈbhβ the buffer head of the block containing the checkpoint indexed bycnoπ¦
π¦ RETURN π¦
It gives you back the byte offset in the folio of the checkpoint specified by cno β¨ like, that's literally the whole point, no cap.
π SEE ALSO π
- Kernel file
./fs/nilfs2/cpfile.c nilfs_cpfile_cp_snapshot_list_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)
ok that's the whole page bestie, you ate that π go read the kernel source, iykyk π
kisses, this one's from ./fs/nilfs2 β version vibes: October 2026 β nilfs_cpfile...point_offset(9) out here living its best life π§ββοΈπ
π¦ 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