dfl_fme_create_region(9)
β¨ dfl_fme_create_region(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one's called dfl_fme_create_region and it lives in the kernel, section 9. it's giving "glow-up for a platform device" energy, iykyk π¦
πΈ NAME πΈ
dfl_fme_create_region β literally creates an fpga region platform device as a child π
like. that's the whole vibe. it makes the region device, and that device is a child. no cap.
β¨ SYNOPSIS β¨
struct dfl_fme_region * dfl_fme_create_region (struct
dfl_feature_dev_data *fdata , struct platform_device *mgr , struct
platform_device *br , int port_id );
she takes four things and hands you back a pointer. slay π₯
π«Ά ARGUMENTS π«Ά
fdataβ the fme feature dev data π that's the feature dev data for the fme, bestie, it's right there in the name.mgrβ the mgr platform device, which is needed for the region πbrβ the br platform device, also needed for the region πport_idβ the port id π (yes. that's it. that's the description. iconic of the original honestly)
β RETURN β
you get the fme region if it worked, and an error code otherwise π so like. always check. don't just trust it. fr fr.
π¦ SEE ALSO π¦
kernel file ./drivers/fpga/dfl-fme-pr.c β go read it, it's right there π
and the whole friend group:
dfl_fme_create_mgr(9)dfl_fme_destroy_mgr(9)dfl_fme_create_bridge(9)dfl_fme_destroy_bridge(9)dfl_fme_destroy_bridges(9)dfl_fme_destroy_region(9)dfl_fme_destroy_regions(9)
notice how there's a create and a destroy for basically everything? yeah. that's the circle of life, kernel edition π please actually call the destroy ones, i'm begging π
lowkey a reminder: this page is from ./drivers/fpga and it's dated October 2026 β that's the source/version and date info, bestie, don't come for me, it's in the footer of the original and now it's in this cute little sign-off instead π
okay that's the whole page, mwah, go forth and create regions responsibly πβ¨π§
π¦ 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