nilfs_sufil...usage_offset(9)
π nilfs_sufil...usage_offset(9) β the Kernel API Manual, girlies β¨
okay so picture this: you're deep in the Kernel API Manual, section 9, and the page you've pulled up is literally called nilfs_sufil...usage_offset(9) (yeah the name's a little truncated, we don't gatekeep, we love her anyway π«Ά). This is the one that tells you where a segment usage entry lives inside its folio. main character energy, honestly.
β¨ NAME β¨
nilfs_sufile_segment_usage_offset β bestie, this one calculates the byte offset of a segment usage entry inside the folio that contains it. that's the whole vibe. π
πΈ SYNOPSIS πΈ
size_t nilfs_sufile_segment_usage_offset (const struct inode *sufile ,
__u64 segnum , struct buffer_head *bh );
like, yes, the line wraps weird in the synopsis, that's just how she is, don't come for her π
π ARGUMENTS π
sufileβ the segment usage file inode. the main inode of the whole operation, no cap πsegnumβ the number of the segment usage. which entry are we talking about, queen? π₯bhβ the buffer head of the block containing the segment usage indexed bysegnum. it's literally the block holder for that entry, okurrr π
β RETURN β
She gives you back the byte offset in the folio of the segment usage entry. that's it, that's the gift πβ¨
π¦ SEE ALSO π¦
the whole friend group, fr fr β everybody's here π:
- Kernel file
./fs/nilfs2/sufile.c struct nilfs_sufile_info(9)nilfs_sufile_get_ncleansegs(9)nilfs_sufile_updatev(9)nilfs_sufile_set_alloc_range(9)nilfs_sufile_alloc(9)nilfs_sufile_mark_dirty(9)nilfs_sufile_set_segment_usage(9)nilfs_sufile_get_stat(9)nilfs_sufile_truncate_range(9)nilfs_sufile_resize(9)nilfs_sufile_get_suinfo(9)nilfs_sufile_set_suinfo(9)nilfs_sufile_trim_fs(9)nilfs_sufile_read(9)
and that's the page, bestie ππ sourced straight from./fs/nilfs2, dated October 2026, and filed undernilfs_sufil...usage_offset(9)β go forth and offset your segments, periodt πΈπ§π
π¦ 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