of_fpga_region_get_mgr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… of_fpga_region_get_mgr β€” kernel API manual, bestie edition ✨

Okay so bestie, welcome to the Kernel API Manual πŸŽ€ β€” this one's a little function from the 9 section and honestly? It's giving "small but mighty." Let's get into it.


🌸 NAME 🌸

of_fpga_region_get_mgr β€” literally just "get reference for FPGA manager." That's the whole gig. Iconic, lowkey, does exactly what it says on the tin πŸ’–


✨ SYNOPSIS ✨

struct fpga_manager * of_fpga_region_get_mgr (struct device_node *np );

That's the signature, no cap. Returns a pointer to struct fpga_manager, takes one struct device_node * named np πŸ¦‹


🫢 ARGUMENTS 🫢

  • np β€” the device_node of the FPGA region. That's it. That's the whole argument list. She's low-maintenance πŸ’…

πŸ”₯ DESCRIPTION πŸ”₯

So here's the tea β˜•: this function gets you the FPGA Manager from the "fpga-mgr" property β€” or, if that's not where it's at, from an ancestor region. Either way, you're getting your manager 🧚

⚠️ Bestie, listen β€” the caller should call fpga_mgr_put when done with the manager. Not optional, not a vibe, it's a whole refcount thing. Put it back when you're finished, fr fr πŸ™ˆ

πŸ’œ RETURN πŸ’œ

You get back the fpga_manager struct β€” ✨ slay ✨ β€” or an IS_ERR condition containing an error code, in which case... not slay, but check it anyway 😭


🌈 SEE ALSO 🌈

Kernel file ./drivers/fpga/of-fpga-region.c β€” and the whole friend group:


and that's the whole page, bestie β€” go forth and manage your FPGAs responsibly πŸ‘‘

kisses from the ./drivers/fpga directory πŸ’‹ β€” dated October 2026, filed under of_fpga_region_get_mgr(9). mwah πŸ“

πŸ“¦ where this page comes from