STRUCT FPGA_MANAGER_OPS(9)
π struct fpga_manager_ops(9) β NAME π
okay bestie, welcome to the Kernel API Manual β¨ this one's all about struct fpga_manager_ops β the ops for low level fpga manager drivers π
πΈ SYNOPSIS πΈ
like, here's the whole struct, literally character for character, no cap:
struct fpga_manager_ops {
size_t initial_header_size;
bool skip_header;
enum fpga_mgr_states (*state)(struct fpga_manager *mgr);
u64 (*status)(struct fpga_manager *mgr);
int (*parse_header)(struct fpga_manager *mgr, struct fpga_image_info
*info, const char *buf, size_t count);
int (*write_init)(struct fpga_manager *mgr, struct fpga_image_info
*info, const char *buf, size_t count);
int (*write)(struct fpga_manager *mgr, const char *buf, size_t
count);
int (*write_sg)(struct fpga_manager *mgr, struct sg_table *sgt);
int (*write_complete)(struct fpga_manager *mgr, struct
fpga_image_info *info);
void (*fpga_remove)(struct fpga_manager *mgr);
const struct attribute_group **groups;
};
β¨ Members β¨
bestie, let's meet the whole squad, one member at a time π«Ά
initial_header_sizeβ the minimum number of bytes that should be passed intoparse_headerandwrite_init. like, don't skimp πskip_headerβ aboolflag that tells the fpga-mgr core whether it should skip theinfo->header_sizepart at the beginning of the image when it's invoking thewritecallback. iykyk π¦stateβ returns an enum value of the FPGA's state πstatusβ returns status of the FPGA, including the reconfiguration error code πparse_headerβ parses the FPGA image header to setinfo->header_sizeandinfo->data_size. and like, in case the input buffer is not large enough, set the required size toinfo->header_sizeand return-EAGAIN. she said try again later πwrite_initβ prepare the FPGA to receive configuration data πwriteβ writecountbytes of configuration data to the FPGA β¨write_sgβ write the scatter list of configuration data to the FPGA πwrite_completeβ set the FPGA to operating state after writing is done, slay πfpga_removeβ optional: Set FPGA into a specific state during driver remove πgroupsβ optional attribute groups. β¨
π Description π
so fpga_manager_ops are the low level functions implemented by a specific fpga manager driver. main character energy, honestly π₯
and the optional ones? they get tested for NULL before being called, so leaving them out is totally fine β no pressure, bestie, they're not gonna crash on you just for ghosting them π§
β SEE ALSO β
go read these next, fr fr:
- Kernel file
./include/linux/fpga/fpga-mgr.henumfpga_mgr_states(9) - FPGA Manager flags(9)
- struct
fpga_image_info(9) - struct
fpga_compat_id(9) - struct
fpga_manager_info(9) - struct
fpga_manager(9)
k that's the whole page, bestie!! π this was ./include/linux/fpga, October 2026, and the star of the show is struct fpga_manager_ops(9) β go forth and manage those fpgas, you absolute icon πβ¨
π¦ 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