nanddev_eras...s_per_target(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ nanddev_eraseblocks_per_target(9) ✨

okay bestie, welcome to the Kernel API Manual πŸ’– this one lives in the NAND device world and it's literally the chillest little getter you'll ever meet. No cap.


🌸 NAME 🌸

nanddev_eraseblocks_per_target β€” get the number of eraseblocks per target πŸŽ€

like, it just tells you how many eraseblocks are in one target. that's the whole vibe. iykyk.


πŸ¦‹ SYNOPSIS πŸ¦‹

unsigned int nanddev_eraseblocks_per_target (const struct nand_device
*nand );

yes she's a one-liner wrapper, she's that girl, main character energy honestly πŸ’…


πŸ’œ ARGUMENTS πŸ’œ

  • nand β€” the NAND device 🫢 like, hand her your struct nand_device and she'll do the rest. that's it. that's the ask.

⭐ RETURN ⭐

the number of eraseblocks per target. periodt. πŸ”₯ it's an unsigned int, it's a count, it's giving "small but important" ✨

πŸ’€ tiny warning from me to you: it returns the count, nothing else β€” no error codes, no negative numbers, no drama. she's a simple queen.

🌈 SEE ALSO 🌈

okay so this is the part where the manpage dumps the ENTIRE friend group 😭 but i promised no details lost, so here we go, all of them, in order, slay:

like… she knows everyone 🧚 obsessed.


and that's the whole page bestie, go forth and count your eraseblocks πŸ’–

✿ ./include/linux/mtd Β· October 2026 Β· nanddev_eraseblocks_per_target(9) ✿ πŸŒΈπŸ¦‹πŸ’…

πŸ“¦ where this page comes from