fpga_mgr_firmware_load(9)
Okurrr bestie π welcome to fpga_mgr_firmware_load(9) from the Kernel API Manual β yes, the kernel API manual, we're fancy now. Let's get this firmware loaded, periodt. β¨
πΈ NAME πΈ
fpga_mgr_firmware_load β request firmware and load to fpga π¦
β¨ SYNOPSIS β¨
The signature, exactly as it is, no edits, no cap:
int fpga_mgr_firmware_load (struct fpga_manager *mgr , struct
fpga_image_info *info , const char *image_name );
π ARGUMENTS π
mgrβ the fpga manager πinfoβ fpga image specific information πΌοΈimage_nameβ name of image file on the firmware search path π
π DESCRIPTION π
So here's the vibe, bestie: this function requests an FPGA image using the firmware class, then writes it out to the FPGA. π«Ά It updates the state before each step so that, if there is a failure, you get info on what step failed β iconic, honestly. π
This code assumes the caller got the mgr pointer from of_fpga_mgr_get or fpga_mgr_get and checked that it is not an error code. That's the whole assumption, no extras, periodt. π
π RETURN π
0 on success, negative error code otherwise. That's it. Not me being dramatic about a return value. π
π¦ SEE ALSO π¦
Kernel file ./drivers/fpga/fpga-mgr.c β go peek, iykyk π:
fpga_image_info_alloc(9)fpga_image_info_free(9)fpga_mgr_buf_load_sg(9)fpga_mgr_buf_load(9)fpga_mgr_load(9)fpga_mgr_get(9)of_fpga_mgr_get(9)fpga_mgr_put(9)fpga_mgr_lock(9)fpga_mgr_unlock(9)__fpga_mgr_register_full(9)__fpga_mgr_register(9)fpga_mgr_unregister(9)__devm_fpga_mgr_register_full(9)__devm_fpga_mgr_register(9)
xoxo, your kernel bestie π source/version: ./drivers/fpga β date: October 2026 π
π¦ 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