of_fpga_region_get_mgr(9)
π 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β thedevice_nodeof 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:
of_fpga_region_find(9)of_fpga_region_get_bridges(9)child_regions_with_firmware(9)of_fpga_region_parse_ov(9)of_fpga_region_notify_pre_apply(9)of_fpga_region_notify_post_remove(9)of_fpga_region_notify(9)of_fpga_region_init(9)
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
- 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