of_ingenic_ecc_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so this is the of_ingenic_ecc_get(9) page from the Kernel API Manual, and it's here to teach you how to get the ECC controller from a DT node. that's the whole name, bestie β€” short, sweet, and lowkey iconic. πŸ’…

✨ SYNOPSIS ✨

here's the signature, copied exactly because we do not mess with code in this house:

struct ingenic_ecc * of_ingenic_ecc_get (struct device_node *of_node );

πŸŽ€ ARGUMENTS πŸŽ€

  • of_node β€” the node that contains an ecc-engine property. that's it, that's the argument, she's simple and she knows it 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the move here is: Get the ecc-engine property from the given device tree node and pass it to ingenic_ecc_get to do the work. literally just grab the property and hand it off, no cap. ✨

🌸 RETURN 🌸

you get back a pointer to ingenic_ecc, and β€” important bestie β€” errors are encoded into the pointer. also, if the device hasn't been initialised yet, you get PTR_ERR(-EPROBE_DEFER). that's the whole return tea. πŸ’œ

🧚 SEE ALSO 🧚

mwah πŸ’‹ this cutie is signed off from ./drivers/mtd/nand/raw/ingenic and dated October 2026 β€” periodt, she ate, and the manual name is right where it belongs. πŸŽ€βœ¨

πŸ“¦ where this page comes from