set_link(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 ⭐

  • 0 on 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