nvm_get_image(9)
π nvm_get_image(9) β like, the whole image, bestie
Okay so real talk: this is a kernel API manual page β nvm_get_image(9), section 9, the driver/kernel-API girlies β and it does exactly one thing but it does it iconically. We're pulling a full image out of nvram. Not a peek, not a lil slice. The entire image. Periodt. π«Ά
β¨ NAME β¨
nvm_get_image β reads an entire image from nvram.
Like, all of it. The full thing. No cap. π
πΈ SYNOPSIS πΈ
int nvm_get_image (struct qed_dev *cdev , enum qed_nvm_images type , u8
*buf , u16 len );
She takes four arguments and returns an int. That's the whole vibe check. π
π¦ ARGUMENTS π¦
cdevβ Qed dev pointer. This is your main character: the device you're doing the thing to, bestie. π₯typeβ type of the request nvram image. So like, which image you're asking for. She needs to know. πbufβ preallocated buffer to fill with the image. Key word: preallocated β you bring the bucket, she brings the water. You do not get to show up empty-handed. πlenβ length of the allocated buffer. Gotta tell her how much room you actually have, or it's giving chaos. β¨
π RETURN π
0 on success, error otherwise. That's it, that's the whole story β zero is the slay, anything else is the group chat going quiet. π
π SEE ALSO π
The kernel file lives at ./include/linux/qed/qed_if.h, and here's the whole friend group, all present and accounted for β not one of them left on read:
selftest_interrupt(9)selftest_memory(9)selftest_register(9)selftest_clock(9)selftest_nvram(9)can_link_change(9)set_link(9)get_link(9)drain(9)update_msglvl(9)nvm_flash(9)set_coalesce(9)set_led(9)attn_clr_enable(9)db_recovery_add(9)db_recovery_del(9)recovery_process(9)recovery_prolog(9)update_drv_state(9)update_mac(9)update_mtu(9)update_wol(9)read_module_eeprom(9)get_affin_hwfn_idx(9)read_nvm_cfg(9)read_nvm_cfg_len(9)set_grc_config(9)qed_sb_ack(9)
Lowkey reminder:bufhas to be preallocated andlenhas to be its actual length. She's trusting you on this one. Don't make it weird. π§
And that's the page, bestie β sourced from ./include/linux/qed, dated October 2026, filed under nvm_get_image(9). Go read an entire image. Slay. π
π
π¦ 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