nilfs_bmap_insert(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– nilfs_bmap_insert(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual page for nilfs_bmap_insert β€” yes that's the whole name, yes it's a mouthful, we love her anyway 🫢


✨ NAME ✨

nilfs_bmap_insert β€” insert a new key-record pair into a bmap πŸ‘‘

🌸 SYNOPSIS 🌸

int nilfs_bmap_insert (struct nilfs_bmap *bmap , __u64 key , unsigned
long rec );

literally the whole signature, no cap πŸŽ€

πŸ¦‹ ARGUMENTS πŸ¦‹

  • bmap β€” the bmap. that's it. that's the description. she's a bmap. iconic minimalism πŸ’…
  • key β€” the key. again, extremely self-explanatory, the kernel devs were in their brevity era 😭
  • rec β€” the record. yep. we're just naming the parameters at this point, and honestly? respect πŸ™ˆ

πŸ’œ DESCRIPTION πŸ’œ

so the way that nilfs_bmap_insert works is: it takes the brand-new key-record pair you specified with key and rec, and it inserts that pair into bmap. that's the whole vibe. new pair, go into the bmap, slay ✨

🌈 RETURN 🌈

on success you get 0 β€” periodt, we love a clean zero πŸ’–

but on failure you get one of these negative error codes, and no bestie, none of them are a good time:

  • -EEXIST β€” a record associated with key already exists 😭 so like… it's already there. she's taken.
  • -EIO β€” I/O error, and yes, that includes metadata corruption πŸ’€ not the cute kind of drama.
  • -ENOMEM β€” insufficient memory available. the memory said "no <3" πŸ“

πŸ”₯ SEE ALSO πŸ”₯

kernel file ./fs/nilfs2/bmap.c β€” that's where she lives 🧚

and the whole friend group, all in one glow-up list:


and that's the page, bestie!! brought to you by ./fs/nilfs2, dated October 2026, from the nilfs_bmap_insert(9) crew β€” go forth and insert responsibly πŸŒΈπŸ’…

πŸ“¦ where this page comes from