nilfs_bmap_lookup_at_level(9)
π nilfs_bmap_lookup_at_level(9) β like, the kernel API manual page, bestie
okay so picture this: it's a Kernel API Manual page, section 9, and the star of the show is nilfs_bmap_lookup_at_level. yes the name is a mouthful. no we're not renaming it. it's iconic like that. β¨
πΈ NAME πΈ
nilfs_bmap_lookup_at_level β literally goes and finds a data block or a node block for you π¦
π SYNOPSIS π
int nilfs_bmap_lookup_at_level (struct nilfs_bmap *bmap , __u64 key ,
int level , __u64 *ptrp );
like, that's the whole signature. copy it exactly, don't @ me π
β¨ ARGUMENTS β¨
bmapβ thebmap. yeah. that's the description. it's a bmap. moving on π«Άkeyβ thekey. also exactly what it sounds like. no notes. πlevelβ thelevel. yep. that one too. πptrpβ the place where the value associated withkeygets stored. this one actually got a real description, we love that for it π
π DESCRIPTION π
so nilfs_bmap_lookup_at_level's whole job is: find a record whose key matches key, inside the block that lives at level of the bmap. that's the vibe check. π₯
and then β the record associated with key gets stored in the place pointed to by ptrp. so like, ptrp is where the tea gets delivered π¬
π RETURN π
- Returns
0on success β slay, we love a clean return π - or one of these negative error codes on failure, and yes they're all negative, that's the whole point:
-EIOβ I/O error (including metadata corruption). bestie the metadata is corrupted, be so serious π-ENOENTβ a record associated withkeydoes not exist. it's giving "we looked and there's nothing there" π-ENOMEMβ insufficient memory available. the memory said no π
π§ SEE ALSO π§
kernel file ./fs/nilfs2/bmap.c (yes, that's the file), plus the whole bmap friend group β they all show up together, iykyk:
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_assign(9)nilfs_bmap_mark(9)nilfs_bmap_test_and_clear_dirty(9)nilfs_bmap_read(9)nilfs_bmap_write(9)
like, the entire roster. we love a supporting cast π
fr fr: this page comes from./fs/nilfs2, and it's datedOctober 2026. that's the source and the date, both present and accounted for, no cap π«Ά
okay that's the page!! go forth and look up your blocks, main character energy only ππ
π¦ 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