nilfs_palloc..._desc_nfrees(9)
π NAME π
nilfs_palloc_group_desc_nfrees β the lil' function that tells you how many free entries are chillin' in a group π
okay so bestie, manual name is nilfs_palloc..._desc_nfrees(9) and it lives in the Kernel API Manual, and yes we're getting into the nitty gritty of nilfs2 allocation today, slay β¨
β¨ SYNOPSIS β¨
unsigned long nilfs_palloc_group_desc_nfrees (const struct
nilfs_palloc_group_desc *desc , spinlock_t *lock );
like, it returns an unsigned long, no cap π«Ά
πΈ ARGUMENTS πΈ
descβ pointer to the descriptor structure for the group π this is the main character, the lil' struct that knows thingslockβ the spin lock protectingdescπ keep her safe, okay??
β RETURN β
Number of free entries written in the group descriptor desc. that's it, that's the whole vibe β it reads the number that's literally already sitting in desc and hands it to you π
π¦ SEE ALSO π¦
Kernel file ./fs/nilfs2/alloc.c and honestly the whole friend group π«Ά:
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_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_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)
and that's the whole page, bestie π sourced from ./fs/nilfs2, dated October 2026, page nilfs_palloc..._desc_nfrees(9) β go read some kernel source, 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