rcar_fcp_get(9)
π NAME π
rcar_fcp_get β bestie, this is the one that goes and finds an FCP instance and grabs a reference to it π
It's a kernel API manual thing, so like, kernel-space vibes only, iykyk π§
β¨ SYNOPSIS β¨
struct rcar_fcp_device * rcar_fcp_get (const struct device_node *np );
That's the whole call, no cap. It hands you back a struct rcar_fcp_device * and it takes one arg, a const struct device_node *np. Clean. Minimal. Ate. π
π ARGUMENTS π
npβ the device node of the FCP instance π¦ like, the actual node you're looking for, that's the one you pass in.
πΈ DESCRIPTION πΈ
okay so here's the tea β β rcar_fcp_get goes through the list of registered FCP instances and searches it for the instance that corresponds to the device node you handed it (np). Very "scroll the group chat till you find the right message" energy, honestly π«Ά
Then it gives you back a pointer to that FCP instance. Slay β¨
BUT β and this is the important part, bestie β if the instance can't be found, it does not just give you NULL and vibe. It returns an ERR_PTR π so please, for the love of everything, check it properly before you dereference. Do not be out here raw-dogging a pointer, I'm begging π
π SEE ALSO π
- Kernel file
./drivers/media/platform/renesas/rcar-fcp.cπ (yes, that's the whole path, write it down) rcar_fcp_put(9)β the counterpart that lets go of the reference, please use it, the way that balance matters is everything πrcar_fcp_enable(9)β‘rcar_fcp_disable(9)π
and that's the page, bestie! πβ¨π this lil gem lives at ./drivers/media/platform/renesas, from the one and only Kernel API Manual, dated October 2026 β go forth and acquire your references responsibly, ily π«Άπ
π¦ 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