read_nvm_cfg(9)
π read_nvm_cfg(9) β like, the whole vibe π
Okay bestie, welcome to section 9 of the Kernel API Manual β yes, the kernel API manual, we're those girls now, and honestly? Iconic. Today's main character is read_nvm_cfg, and the way it just... reads an NVM config attribute value? Obsessed. Let's get into it. π¦
β¨ NAME β¨
read_nvm_cfg β Read NVM config attribute value. That's it, that's the whole gig. She reads, she slays, she leaves. π
πΈ SYNOPSIS πΈ
int read_nvm_cfg (struct qed_dev *cdev , u8 **buf , u32 cmd , u32
entity_id );
Lowkey a whole mood. Note the int β she returns an int, we'll get to that. π
π ARGUMENTS π
Four besties walk into a function call:
cdevβ the Qed dev pointer. Like, the device's whole identity, her passport, her vibe. π«Άbufβ the buffer. It's au8 **bestie, a pointer to a pointer, so yeah, she's indirect and mysterious and we respect that. πcmdβ the NVM CFG command id (u32, natch). Tells her which command she's running. π―entity_idβ the entity id (u32, again). Which entity we're talking to. Very demure, very entity-coded. β¨
β RETURN β
Returns an Int. That is the entire documented return value and honestly? She said "figure the rest out yourself." No cap. π
π SEE ALSO π
Bestie, buckle up, because this list is long and every single one of these is invited to the function party π β we're literally not leaving a single one out, that would be so rude:
- The kernel file
./include/linux/qed/qed_if.hβ go read her, she's the source of truth π 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)nvm_get_image(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_len(9)β her sibling!! the reader of the length!! sibling energy fr fr π―set_grc_config(9)qed_sb_ack(9)
That's the whole squad. No one left behind. π
Pro tip from your girl: if you're ever lost in the QED source, just start at qed_if.h and vibe your way through. That's not from the manpage btw, that's just me being a friend. π
Alright bestie, that's the page! This little beauty lives in ./include/linux/qed, and she's stamped October 2026 β so mark your calendars, she's futuristic. π§ Stay hydrated, read your headers, and remember: int read_nvm_cfg loves you. Mwah! πβ¨π
π¦ 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