get_link(9)
πΈ get_link(9) β a Kernel API Manual moment πΈ
Okay so bestie, this is a page straight outta the Kernel API Manual, and it's about one tiny lil function called get_link. And likeβ¦ the name is literally the whole plot π
it returns the current link state. That's it. That's the vibe.
β¨ NAME β¨
get_link β returns the current link state.
Yeah. Short. Sweet. Iconic. It tells you what's up with the link and then it dips π«Ά
π¦ SYNOPSIS π¦
void get_link (struct qed_dev *cdev , struct qed_link_output
*if_link );
Look at that signature, no cap. It returns void, takes a struct qed_dev * and a struct qed_link_output *, and yes the spacing in there is exactly what the page says so don't come for me π
π ARGUMENTS π
cdevβ the Qed dev pointer. Your lil handle on the device, basically the main character here πif_linkβ a structure that gets filled with the current link configuration. Not read from. Filled. It's the output girlie π
β RETURN β
Void.
That's it. Nothing comes back. Zero. Nada. The function hands you nothing and you say thank you ππ
π SEE ALSO π
First up, the kernel file itself β go touch grass in ./include/linux/qed/qed_if.h π§
And then the whole friend group, fr fr:
selftest_interrupt(9)selftest_memory(9)selftest_register(9)selftest_clock(9)selftest_nvram(9)can_link_change(9)set_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)
Like I said. Whole friend group. Go read them all, I'll wait π
Lowkey reminder bestie: this page gives you the what, not the how β there's no DESCRIPTION, no OPTIONS, no EXAMPLES here. Just name, signature, args, return, and the squad. Don't go inventing extra behaviour, that's not the vibe check we're passing π₯
And that's the whole page, mwah π sign-off time: this one lives at ./include/linux/qed, dated October 2026, and it's filed under get_link(9). Slay, bye πβ¨
π¦ 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