nilfs_bmap_assign(9)
π NAME π
okay so this is the nilfs_bmap_assign(9) page from the Kernel API Manual, and the name is giving exactly this: nilfs_bmap_assign β assign a new block number to a block. slay. π
β¨ SYNOPSIS β¨
bestie, here's the signature, exactly:
int nilfs_bmap_assign (struct nilfs_bmap *bmap , struct buffer_head **bh , unsigned long blocknr , union nilfs_binfo *binfo );
πΈ ARGUMENTS πΈ
bmapβbmap. That's literally the whole note, bestie; no cap. π«Άbhβ place to store a pointer to the buffer head to which a block address is assigned (in/out). So it's in/out, iykyk. πblocknrβ block number.binfoβ block information.
π¦ DESCRIPTION π¦
okay so nilfs_bmap_assign assigns the block number blocknr to the buffer specified by bh. The block information is stored in the memory pointed to by binfo, and the buffer head may be replaced as a block address is assigned β in which case a pointer to the new buffer head is stored in the memory pointed to by bh.
The way this is a whole little swap situation πβ¨
π RETURN π
0 on success, or one of the following negative error codes on failure:
-EIOβ I/O error (including metadata corruption).-ENOMEMβ Insufficient memory available.
π₯ SEE ALSO π₯
Kernel file ./fs/nilfs2/bmap.c β and these linked pages, bestie:
nilfs_bmap_lookup_at_level(9)nilfs_bmap_insert(9)nilfs_bmap_seek_key(9)nilfs_bmap_delete(9)nilfs_bmap_truncate(9)nilfs_bmap_clear(9)nilfs_bmap_propagate(9)nilfs_bmap_lookup_dirty_buffers(9)nilfs_bmap_mark(9)nilfs_bmap_test_and_clear_dirty(9)nilfs_bmap_read(9)nilfs_bmap_write(9)
mwah π source/version: ./fs/nilfs2; date: October 2026; page: nilfs_bmap_assign(9). bye bestie, go assign that block number π«Ά
π¦ 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