nilfs_palloc_entry_offset(9)
π nilfs_palloc_entry_offset(9) β like, the kernel API manual one π
okay so bestie, welcome to nilfs_palloc_entry_offset(9), a genuinely iconic little function living in the Kernel API Manual. it does exactly one job and it does it flawlessly: it tells you where in the folio an entry actually sits. no cap. β¨
πΈ NAME πΈ
nilfs_palloc_entry_offset β calculate the byte offset of an entry in the folio containing it π
π¦ SYNOPSIS π¦
size_t nilfs_palloc_entry_offset (const struct inode *inode , __u64 nr ,
const struct buffer_head *bh );
that's the whole signature, copy it exactly pls, she's precise π
β¨ ARGUMENTS β¨
inodeβ the inode of the metadata file that's using this allocator. yes, that one. πnrβ the serial number of the entry (like, e.g. the inode number). it's a__u64, she's big. π₯bhβ the buffer head of the entry block. the whole squad is here. π«Ά
β RETURN β
returns the byte offset in the folio of the entry nr. that's it, that's the tea. π
π SEE ALSO π
so like, nilfs_palloc_entry_offset(9) does not exist in a vacuum β she has a whole friend group. kernel file ./fs/nilfs2/alloc.c is the main character, and these are the besties 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_group_desc_offset(9)nilfs_palloc_bitmap_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)
like, thirty of them. she's popular. π
π reminder bestie: every single one of those is (9) and spelled exactly like that, so don't get creative when you're grepping. π
and that's the page!! π this lil beauty comes from ./fs/nilfs2, dated October 2026 β yeah, the future, she's ahead of her time π§π
mwah, go read alloc.c now, ily, bye!! πβ¨
π¦ 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