socrates_nand_write_buf(9)
β¨ socrates_nand_write_buf(9) β¨
okay so bestie, welcome to the Kernel API Manual π
today we're looking at socrates_nand_write_buf β literally the function that writes a buffer to the chip π no cap, that's the whole vibe.
πΈ NAME πΈ
socrates_nand_write_buf β write buffer to chip β¨
like, you hand it some bytes and it puts them on the NAND chip. it's giving "delivery service for data" π¦π
π¦ SYNOPSIS π¦
void socrates_nand_write_buf (struct nand_chip *this , const uint8_t
*buf , int len );
yes she returns void β she's not here to give you feedback, she's here to write π periodt.
π ARGUMENTS π
thisβ the NAND chip object π§ like, the actual chip you're talking to. main character of this whole operation, ngl.bufβ the data buffer π that's your payload, bestie. the bytes you wanna send out into the world.lenβ number of bytes to write π₯ how many of those little guys frombufare actually going to the chip. don't mess this up fr fr.
π SEE ALSO π
- Kernel file
./drivers/mtd/nand/raw/socrates_nand.cπ β go read the source, it's right there, iykyk π socrates_nand_read_buf(9)πsocrates_nand_read_byte(9)β
π reminder bestie: if you're gonna write, maybe also check out the read functions up there β they're literally right there in SEE ALSO, and they're lowkey obsessed with being useful π«Ά
and that's the page!! πΈ brought to you by the Kernel API Manual, living in ./drivers/mtd/nand/raw, dated October 2026 π mwah, slay, bye 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