nand_write_buf16(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– nand_write_buf16(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” today's main character is nand_write_buf16, and she is literally the default girlie of the NAND world. let's get into it ✨


🌸 NAME 🌸

nand_write_buf16 β€” [DEFAULT] write buffer to chip 🫢

like, the plain-vanilla, no-frills, everyone-starts-here way to push a buffer at the chip. iconic behaviour honestly.


✨ SYNOPSIS ✨

void nand_write_buf16 (struct nand_chip *chip , const uint8_t *buf , int
       len );

no cap, that's the whole signature. she takes three things and returns nothing (it's void, she gives nothing back and that's her right πŸ’…).


πŸŽ€ ARGUMENTS πŸŽ€

  • chip β€” the NAND chip object itself, the whole reason we're here πŸ‘‘
  • buf β€” your data buffer, aka the actual bytes you're trying to send out into the world πŸ¦‹
  • len β€” number of bytes to write, the vibe check on how much we're doing today

🌈 DESCRIPTION 🌈

Default write function for 16bit buswidth. that's it, that's the whole paragraph, and honestly? she ate. it's the go-to write routine when your bus is 16 bits wide β€” the standard, the baseline, the blueprint 🧚


πŸ’œ SEE ALSO πŸ’œ

Kernel file ./drivers/mtd/nand/raw/nand_legacy.c β€” go read her, she's the source of truth πŸ“–

and then the whole friend group, fr fr:

it's giving "the entire squad showed up to the function" and we love that for them 😭πŸ”₯


real talk though: this is the default implementation, so if you're seeing her in the stack trace, no drama β€” she's literally the fallback every 16-bit bus leans on. 🫢

and that's the page, bestie!! 🌸 sign-off time: this little gem lives over in ./drivers/mtd/nand/raw and it's dated October 2026 β€” write that down, iykyk πŸŽ€πŸ’–β­

πŸ“¦ where this page comes from