nand_command_lp(9)
π
nand_command_lp β like, the whole kernel-API-manual moment π
okay bestie, so this page lives in the Kernel API Manual and it's literally called nand_command_lp(9) β say it with me, nand_command_lp. iconic name, no notes. π
πΈ NAME πΈ
nand_command_lp β [DEFAULT] Send command to NAND large page device β¨
So yes, the [DEFAULT] bit is literally part of the name section, we don't make the rules, we just slay them. π
π¦ SYNOPSIS π¦
void nand_command_lp (struct nand_chip *chip , unsigned int command ,
int column , int page_addr );
that's the whole signature, character for character, don't touch it. π«Ά
β¨ ARGUMENTS β¨
okay so here's the cast of characters, and bestie, every single one matters:
chipβ the NAND chip object itself. the main character of this whole situation, lowkey. πcommandβ the command you're sending out into the world. go little command go. π₯columnβ the column address for this command, or-1if there isn't one. so like,-1is the "nope, not today" value. πpage_addrβ the page address for this command, or-1if there isn't one either. same energy, same-1. π
π§ DESCRIPTION π§
okay so picture this: you're sending a command to a NAND device. that's the whole vibe. π
This particular version is the one for the new large page devices β the glow-up edition. The way that small page devices have separate regions and large page devices just don't? yeah. We don't have the separate regions as we have in the small page devices. fr fr. π
so there's this thing we gotta do: we must emulate NAND_CMD_READOOB to keep the code compatible. it's giving "we're doing this for the legacy besties" and honestly? respecting it. π
π SEE ALSO π
everything below is a real reference, keep them close, they're family. π
Kernel file ./drivers/mtd/nand/raw/nand_legacy.c
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_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_get_set_features_notsupp(9)nand_wait(9)
and that's the page!! mwah π this one shipped from ./drivers/mtd/nand/raw, dated October 2026 β yes, October 2026, she's from the future and she ate. πΈπ
see u in the next manpage bestie π«Ά
π¦ 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