set_link(9)
π set_link(9) β like, the Kernel API Manual's own little link-setter β¨
okay bestie, grab your matcha π because we're diving into set_link(9) from the Kernel API Manual and honestly? it's short, it's sweet, it's giving "small function, big responsibilities."
πΈ NAME πΈ
set_link β sets links according to params. that's it. that's the whole vibe. simple, iconic, no notes π
β¨ SYNOPSIS β¨
here's the whole signature, copied exactly because we do not paraphrase code in this house:
int set_link (struct qed_dev *cdev , struct qed_link_params
*params );
like look at that. int return, two pointers, done. main character energy fr fr π
π ARGUMENTS π
two arguments, both absolutely pulling their weight:
cdevβ the Qed dev pointer. yes queen, this is your device handle, the whole reason we're here π«Άparamsβ the values used to override the default link configuration. so if you want something other than the default setup, this is where you say it. lowkey the fun one π
β RETURN β
0on success π- error otherwise π (no, it does not tell you more than that here, and honestly same)
π¦ SEE ALSO π¦
buckle up bestie, this list is long and we are not skipping a single one of them, because every single reference deserves its moment π
Kernel file ./include/linux/qed/qed_if.h, plus:
selftest_interrupt(9), selftest_memory(9), selftest_register(9), selftest_clock(9), selftest_nvram(9), can_link_change(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), read_nvm_cfg_len(9), set_grc_config(9), qed_sb_ack(9)
π tiny reminder: if it doesn't return 0, it's an error. no cap. check it, bestie.
and that's the page!! π§ shoutout to ./include/linux/qed and the October 2026 date stamp for showing up and making this official β 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