ingenic_ecc_get(9)
πΈ NAME πΈ
okay bestie, welcome to ingenic_ecc_get(9) from the Kernel API Manual π this is the function that gets you the ECC controller device. short, iconic, to the point. slay.
β¨ SYNOPSIS β¨
struct ingenic_ecc * ingenic_ecc_get (struct device_node *np );
π ARGUMENTS π
npβ ECC device tree node. that's the node you're handing over, bestie π³
π¦ DESCRIPTION π¦
Gets the ECC controller device from the specified device tree node. The device must be released with ingenic_ecc_release when it is no longer being used. no cap, that release step is not optional π
π RETURN π
A pointer to ingenic_ecc β errors are encoded into the pointer. PTR_ERR(-EPROBE_DEFER) if the device hasn't been initialised yet. so yeah, errors are encoded into the pointer, and you might see PTR_ERR(-EPROBE_DEFER) if the device hasn't been initialised yet π
π SEE ALSO π
- Kernel file
./drivers/mtd/nand/raw/ingenic/ingenic_ecc.c ingenic_ecc_calculate(9)ingenic_ecc_correct(9)of_ingenic_ecc_get(9)ingenic_ecc_release(9)
and that's the whole page, bestie π shoutout to the source/version ./drivers/mtd/nand/raw/ingenic and the October 2026 date for making this lil manual moment happen π«Ά
π¦ 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