nand_write_buf(9)
π 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:
nand_read_byte(9)nand_read_byte16(9)nand_select_chip(9)nand_write_byte(9)nand_write_byte16(9)nand_read_buf(9)nand_write_buf16(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)
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
- 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