rcar_fcp_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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