nand_write_buf(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nand_write_buf(9) β€” from the Kernel API Manual, bestie ✨

Okay so picture this: you're deep in the kernel, you've got a NAND chip in front of you, and you need to put bytes into it. That's literally the whole vibe of this page. It's a manual page for nand_write_buf, living in the Kernel API Manual part of section 9 (iykyk, that's the kernel-API corner of the man pages πŸŽ€).


✨ NAME ✨

nand_write_buf β€” ok so this is marked [DEFAULT] and it does exactly what it says on the tin: write buffer to chip. That's it. That's the function. She's a buffer-writer, she's default, she's iconic πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

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

Note the void return bestie β€” she gives you nothing back. No status, no little thumbs up, no error code. She just writes. Main character energy honestly πŸ‘‘


🌸 ARGUMENTS 🌸

  • chip β€” the NAND chip object. Like, the actual chip you're talking to. Your little guy 🫢
  • buf β€” the data buffer. This is where your bytes are sitting, waiting for their moment ✨
  • len β€” number of bytes to write. How many of those bytes are actually coming along for the ride πŸ’«

πŸ”₯ DESCRIPTION πŸ”₯

So this is the default write function for 8bit buswidth. That's the whole description, no cap. Eight-bit bus width β€” that's the lane she's driving in πŸš—πŸ’¨

It's the fallback/default one, which is why she's got that [DEFAULT] tag up in the NAME section. Lowkey the workhorse of the legacy NAND world 🐎


πŸ’œ SEE ALSO πŸ’œ

The kernel file lives at ./drivers/mtd/nand/raw/nand_legacy.c β€” go say hi to her siblings:

That's the whole friend group fr fr 🌈 β€” readers, writers, the 16-bit girlies, and a bunch of waiters who are just, like, waiting πŸ’€


Okay bestie, tiny vibe-check reminder: every single one of those names above is exactly as written. Don't be out here typoing nand_get_set_features_notsupp β€” that one's a mouthful and she WILL notice πŸ™ˆ

That's the page! No bugs listed, no warnings, no exit statuses β€” this one's refreshingly chill πŸ“

Source: ./drivers/mtd/nand/raw, dated October 2026. Slay, see you in the next man page πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from