of_ingenic_ecc_get(9)
π 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 anecc-engineproperty. 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 π§
- Kernel file β
./drivers/mtd/nand/raw/ingenic/ingenic_ecc.c ingenic_ecc_calculate(9)ingenic_ecc_correct(9)ingenic_ecc_get(9)ingenic_ecc_release(9)
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
- 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