qla2x00_pro...lash_address(9)
π NAME π
qla2x00_program_flash_address β okay so bestie, this one programs a flash address. That's the whole gig. It's living in the Kernel API Manual, section 9, and it is fully here to write bytes into flash and be iconic about it β¨
πΈ SYNOPSIS πΈ
int qla2x00_program_flash_address (struct qla_hw_data *ha , uint32_t addr , uint8_t data , uint8_t man_id , uint8_t flash_id );
Like, that's the whole signature. Five args, one int coming back at you. Slay π«Ά
π ARGUMENTS π
haβ the HA context. Your whole hardware situation, hand-delivered πaddrβ address in flash to program. This is the where, bestie, be normal about it πdataβ data to be written in flash. The actual payload, the main character of the operation πman_idβ flash manufacturer ID. Gotta know who made the thing π·οΈflash_idβ flash ID. The second half of the "which flash is this" vibe check π
β¨ DESCRIPTION β¨
Returns 0 on success, else non-zero. That's it, that's the description. No cap, no extra lore β just check your return value and behave accordingly π
fr fr: non-zero means it did not go well. Don't ignore it, bestie, that's not the energy π
π¦ SEE ALSO π¦
Kernel file ./drivers/scsi/qla2xxx/qla_sup.c β that's the home base for all of these lovelies:
qla29xx_get_flt_layout(9)qla29xx_get_fdt_info(9)qla29xx_get_flash_region(9)set_segment_bits(9)set_chunk_bits(9)qla29xx_write_optrom_data(9)qla29xx_read_optrom_data(9)qla29xx_mpi_optrom_data(9)qla2x00_lock_nvram_access(9)qla2x00_unlock_nvram_access(9)qla2x00_nv_write(9)qla2x00_nvram_request(9)qla2x00_get_nvram_word(9)qla2x00_nv_deselect(9)qla2x00_write_nvram_word(9)qla2x00_clear_nvram_protection(9)qla2x00_flash_enable(9)qla2x00_flash_disable(9)qla2x00_read_flash_byte(9)qla2x00_write_flash_byte(9)qla2x00_poll_flash(9)qla2x00_erase_flash(9)qla2x00_erase_flash_sector(9)qla2x00_get_flash_manufacturer(9)qla2x00_get_fcode_version(9)
Twenty-five whole friends. A whole squad. iykyk π
Ok that's the whole page, mwah π β brought to you by ./drivers/scsi/qla2xxx, dated October 2026. Go program some flash addresses responsibly, and remember: check the return value before you celebrate ππ
π¦ 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