read_nvm_cfg_len(9)
π read_nvm_cfg_len β Kernel API Manual realness
okay so bestie, welcome to the Kernel API Manual page for read_nvm_cfg_len(9) and honestly it's giving "tiny function, big friend group" energy. let's get into it π
β¨ NAME β¨
read_nvm_cfg_len β literally just reads an NVM config attribute value. that's the whole vibe. π
πΈ SYNOPSIS πΈ
int read_nvm_cfg_len (struct qed_dev *cdev , u32 cmd );
like, yes, that's the entire signature. short king behavior fr fr π
π¦ ARGUMENTS π¦
two of em, and they're both important, no cap:
cdevβ the Qed dev pointer. it's the main character of this whole operation, the lil handle to your device. hold it gently π«Άcmdβ the NVM CFG command id. it's au32, it tells the function which config thing you're asking about. iykyk β¨
π₯ RETURN π₯
returns the config id length β that's the slay outcome π
but if it goes wrong? it returns 0 on error. so like, don't confuse "zero length" with "everything is fine," bestie, because that 0 is the error signal. read it and weep π
lowkey a little unhinged to use 0 as the error value, but that's what the manpage says and i don't make the rules, i just report them π
π SEE ALSO π
the whole extended friend group, in exactly the order the manpage gives them β no skipped members, periodt:
- the Kernel file
./include/linux/qed/qed_if.hβ go read it, it's iconic π 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(9)set_grc_config(9)qed_sb_ack(9)
like?? that's a whole squad. read_nvm_cfg(9) is the sibling btw, the one without _len β go say hi π
and that's the page, bestie β¨ this lil gem lives in ./include/linux/qed and it's stamped October 2026 (yes, a date in the future, don't ask, the manpage said it and i'm not about to argue π). mwah, go read some NVM configs, you got this ππ
π¦ 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