nd_btt_arena_is_valid(9)
hiii bestie π welcome to nd_btt_arena_is_valid(9) β yes, the manual name is right there, no cap. This is the little kernel API page that does a vibe check on the metadata layout. Letβs go π«Ά
π NAME π
nd_btt_arena_is_valid β check if the metadata layout is valid β¨
β¨ SYNOPSIS β¨
bool nd_btt_arena_is_valid (struct nd_btt *nd_btt , struct btt_sb *super );
π ARGUMENTS π
nd_bttβ the device with BTT geometry and backing device info. Itβs giving βI know where things liveβ πsuperβ pointer to the arenaβs info block being tested. This is the lil block under the microscope π
π¦ DESCRIPTION π¦
Okay so this function checks consistency of the btt info block with itself by validating the checksum β
. It also checks consistency with the parent namespace by verifying the parent_uuid contained in the info block against the one supplied in π§. Thatβs the whole mission: is this layout valid or not, bestie?
π RETURN π
falsefor an invalid info block πtruefor a valid one π
πΈ SEE ALSO πΈ
- Kernel file
./drivers/nvdimm/btt_devs.cβ go peek if you want the source side of the story πβ¨
With so much love from the source/version ./drivers/nvdimm, dated October 2026 β mwah ππ
π«Ά
π¦ 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