badblocks_show(9)
hiii bestie π we're looking at badblocks_show(9) from the Kernel API Manual, and it's giving kernel-internals realness. lowkey iconic, ngl. let's go π
β¨ NAME β¨
badblocks_show β sysfs access to the bad-blocks list. no cap, that's the whole name-and-purpose situation. slay.
π¦ SYNOPSIS π¦
the signature is literally this, character for character, don't @ me:
ssize_t badblocks_show (struct badblocks *bb , char *page , int unack );
π ARGUMENTS π
okay so the arguments are lowkey simple, and each one is doing its little job:
bbβ thebadblocksstructure that holds all badblock information. it's the main character holding all the receipts, fr fr.pageβ buffer received from sysfs. it's the little delivery container, periodt.unackβ weather to show unacknowledged badblocks. yes, the original says βweatherβ β we're keeping that exact spelling, it's part of the lore π.
π RETURN π
Length of returned data. that's it, that's the return value β a length. highkey simple, and we love that for us.
π SEE ALSO π
the whole badblocks friend group and the file they live in:
- Kernel file
./block/badblocks.c badblocks_check(9)badblocks_set(9)badblocks_clear(9)ack_all_badblocks(9)badblocks_store(9)badblocks_init(9)badblocks_exit(9)
go say hi, iykyk π«Ά
mwah π sign-off time: source/version is ./block, date is October 2026, and the page is badblocks_show(9). bye bestie π«Άβ¨
π¦ 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