nand_write_byte16(9)
π nand_write_byte16(9) β Kernel API Manual β¨
okay bestie, welcome to the Kernel API Manual, specifically the page for nand_write_byte16 β yes that's the whole title, yes it's a mouthful, we're coping π«Ά
πΈ NAME πΈ
nand_write_byte16 β [DEFAULT] write single byte to a chip with width 16 π
(yeah the [DEFAULT] is literally part of the name line, don't come for me, that's just how the kernel labels its default implementations π)
π¦ SYNOPSIS π¦
void nand_write_byte16 (struct nand_chip *chip , uint8_t byte );
that's it. that's the whole signature. short, sweet, and it returns void because it does not care about your feedback π
π ARGUMENTS π
chipβ the NAND chip object. like, the actual chip we're talking to, this is the main character of the function ngl π₯byteβ the value to write. one single byte, no more, no less π
β DESCRIPTION β
so here's the tea β: this is the default function that writes a byte to I/O[7:0] on a 16-bit wide chip.
yes, you read that right β a byte (8 bits, one little guy) going onto a 16-bit wide bus. lowkey iconic behavior, but that's literally the documented job: default function, write a byte, to I/O[7:0], on a 16-bit wide chip. no cap. β¨
don't overthink it, bestie β it's giving "small task, big chip energy" and honestly we respect it π
π SEE ALSO π
the kernel file lives at ./drivers/mtd/nand/raw/nand_legacy.c β go say hi to it π§
and then there's the whole friend group, fr fr:
nand_read_byte(9)nand_read_byte16(9)nand_select_chip(9)nand_write_byte(9)nand_write_buf(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)
π«Ά note to self: that list is in the exact order the manpage gave it, because we do not rearrange the squad. also yes, panic_nand_wait_ready is right there in the middle and we're all pretending that's normal π
π the cute sign-off π
this lil page came from ./drivers/mtd/nand/raw and it's dated October 2026 β so like, it's from the future?? kind of?? anyway that's the source/version + date, all accounted for, and nand_write_byte16(9) is the last word π
mwah, go write some bytes πβ¨
π¦ 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