apply_link_downgrade_policy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, we're in the apply_link_downgrade_policy(9) page of the Kernel API Manual, and honestly? this one's lowkey a vibe check for your link widths. no cap, let's get into it 🫢

✨ NAME ✨

apply_link_downgrade_policy β€” literally applies the link width downgrade enabled policy against the current active link widths. that's it, that's the whole thing πŸ’…


🌸 SYNOPSIS 🌸

bool apply_link_downgrade_policy (struct hfi1_pportdata *ppd , bool
refresh_widths );

πŸŽ€ ARGUMENTS πŸŽ€

  • ppd β€” the info of the physical Hfi port. like, the whole personality of the port goes in here πŸ’–
  • refresh_widths β€” True means a link downgrade event happened. it's giving "yes queen, something changed" ✨

πŸ¦‹ RETURN πŸ¦‹

  • True β€” slay, the link downgrade worked πŸŽ‰
  • False β€” nope, the link downgrade event failed, and the link will bounce back to default link width. it's giving "we're so back", but like, sadly 😭

πŸ‘‘ DESCRIPTION πŸ‘‘

so this gets called whenever the enabled policy changes or the active link widths change β€” either one, she's on it 🌈

refresh_widths is the one that says "hey, a link downgrade occurred." and then the link_downgraded variable gets set by refresh_widths, and that is what determines the success/failure of the policy application. so like, refresh_widths is the main character here, fr fr πŸ‘‘

no big dramatic warnings on this one, bestie β€” just know that the return value is the whole story: True = the downgrade stuck, False = the link bounces back to default link width. 🫢

πŸ’œ SEE ALSO πŸ’œ

the kernel file lives right here, iconic:

./drivers/infiniband/hw/hfi1/chip.c

and the whole friend group πŸ«‚:


okay that's the whole page, you ate that πŸ’… this lil gem comes to you straight from ./drivers/infiniband/hw/hfi1, dated October 2026 β€” apply_link_downgrade_policy(9), periodt. πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from