nilfs_palloc..._desc_offset(9)
π nilfs_palloc_group_desc_offset β the Kernel API Manual, bestie edition π
okay so this is a page from the Kernel API Manual (nilfs_palloc..._desc_offset(9)), and honestly? it's a tiny little function that does one very specific thing and does it flawlessly. main character energy, no notes. π
β¨ NAME β¨
nilfs_palloc_group_desc_offset β literally just calculates the byte offset of a group descriptor inside the folio that contains it. that's it. that's the whole job. and she ate. π
π¦ SYNOPSIS π¦
size_t nilfs_palloc_group_desc_offset (const struct inode *inode ,
unsigned long group , const struct buffer_head *bh );
copy it exactly, bestie β every const, every *, every comma. do not freestyle. π
πΈ ARGUMENTS πΈ
inodeβ the inode of the metadata file that's using this allocator. like, whose house are we in. πgroupβ the group number. which group, bestie. be specific.bhβ the buffer head of the group descriptor block. this is the block we're poking around inside. π«Ά
β RETURN β
returns the byte offset, in the folio, of the group descriptor for group. a number. a size_t. immaculate. β¨
π SEE ALSO π
the kernel file ./fs/nilfs2/alloc.c and honestly the entire extended friend group β all of these are part of the same allocator lore, iykyk:
nilfs_palloc_groups_per_desc_block(9)nilfs_palloc_groups_count(9)nilfs_palloc_init_blockgroup(9)nilfs_palloc_group(9)nilfs_palloc_desc_blkoff(9)nilfs_palloc_bitmap_blkoff(9)nilfs_palloc_group_desc_nfrees(9)nilfs_palloc_group_desc_add_entries(9)nilfs_palloc_entry_blkoff(9)nilfs_palloc_desc_block_init(9)nilfs_palloc_delete_block(9)nilfs_palloc_get_desc_block(9)nilfs_palloc_get_bitmap_block(9)nilfs_palloc_delete_bitmap_block(9)nilfs_palloc_get_entry_block(9)nilfs_palloc_delete_entry_block(9)nilfs_palloc_bitmap_offset(9)nilfs_palloc_entry_offset(9)nilfs_palloc_find_available_slot(9)nilfs_palloc_rest_groups_in_desc_block(9)nilfs_palloc_count_desc_blocks(9)nilfs_palloc_mdt_file_can_grow(9)nilfs_palloc_count_max_entries(9)nilfs_palloc_prepare_alloc_entry(9)nilfs_palloc_commit_alloc_entry(9)nilfs_palloc_commit_free_entry(9)nilfs_palloc_abort_alloc_entry(9)nilfs_palloc_prepare_free_entry(9)nilfs_palloc_abort_free_entry(9)nilfs_palloc_freev(9)
thirty of them. thirty!! a whole squad. go read them, they're all slaying in their own way. π
and that's the page!! this little beauty lives in ./fs/nilfs2, dated October 2026, and it's filed under nilfs_palloc..._desc_offset(9) in the Kernel API Manual β mwah, bye bestie, go calculate some offsets πππ¦
π¦ 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