nand_write_buf16(9)
π 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:
nand_read_byte(9)nand_read_byte16(9)nand_select_chip(9)nand_write_byte(9)nand_write_byte16(9)nand_write_buf(9)nand_read_buf(9)nand_read_buf16(9)panic_nand_wait_ready(9)nand_wait_ready(9)nand_wait_status_ready(9)nand_command(9)nand_command_lp(9)nand_get_set_features_notsupp(9)nand_wait(9)
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
- 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