STRUCT NILFS_BMAP(9)
π struct nilfs_bmap(9) π
okay so welcome to the struct nilfs_bmap(9) page β that's the section 9 entry in the Kernel API Manual, bestie, and we're about to get so cozy with a bmap structure π
β¨ NAME β¨
struct nilfs_bmap β the bmap structure itself, no cap, that's literally it π¦
πΈ SYNOPSIS πΈ
struct nilfs_bmap {
union {
__u8 u_flags;
__le64 u_data[NILFS_BMAP_SIZE / sizeof(__le64)];
} b_u;
struct rw_semaphore b_sem;
struct inode *b_inode;
const struct nilfs_bmap_operations *b_ops;
__u64 b_last_allocated_key;
__u64 b_last_allocated_ptr;
int b_ptr_type;
int b_state;
__u16 b_nchildren_per_block;
};
like, look at her. main character struct energy. copy it exactly, don't you dare retype a field name wrong π
π§ Members π§
okay bestie, let's go field by field, one at a time, no skipping π₯
b_uβ raw data, the whole vibe, unfiltered πb_semβ a semaphore, she's the bouncer at the door πb_inodeβ the owner of the bmap, iykyk πb_opsβ the bmap operation table, the whole playbook fr fr πb_last_allocated_keyβ the last allocated key for a data block, she remembers πΈb_last_allocated_ptrβ the last allocated ptr for a data block, also remembered π«Άb_ptr_typeβ pointer type βb_stateβ state, that's the whole description, that's the tweet π¦b_nchildren_per_blockβ maximum number of child nodes for non-root nodes β note the non-root part, that's load-bearing π§
π SEE ALSO π
go read these next, bestie, they're all connected:
- Kernel file
./fs/nilfs2/bmap.h union nilfs_bmap_ptr_req(9)struct nilfs_bmap_stats(9)struct nilfs_bmap_operations(9)struct nilfs_bmap_store(9)
lowkey a little reminder: everything above is exactly what the page says, so don't go inventing behaviour for these fields, mwah π«Ά
and that's the whole page!! ate and left no crumbs π
β¨ β this one's from ./fs/nilfs2, dated October 2026, and yeah, it's the struct nilfs_bmap(9) page, iconic, 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