dc_get_host_router_index(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dc_get_host_router_index(9) β€” the Kernel API Manual glow-up ✨

okay so bestie, this is a page from the Kernel API Manual (yes, section 9, the big-kid section) and it's literally all about dc_get_host_router_index. it's tiny, it's cute, it's giving "one job and it does it." let's get into it πŸŽ€


🌸 NAME 🌸

dc_get_host_router_index β€” get the index of a host router from a dpia link πŸ’«


✨ SYNOPSIS ✨

bool dc_get_host_router_index (const struct dc_link *link , unsigned int
*host_router_index );

that's the whole signature, no cap. returns a bool, takes two args, and one of them is a pointer-to-pointer situation (well, pointer-to-unsigned int, close enough). πŸ”₯


πŸ¦‹ ARGUMENTS πŸ¦‹

  • link β€” pointer to the target link. this one is input only, she's just here to be read from, main character energy but make it read-only. πŸ‘‘
  • host_router_index β€” pointer to where you want the host router index of the target link stashed. this one is output, so she's the one getting written to. πŸ’–

πŸ’œ DESCRIPTION πŸ’œ

so this function returns a host router index of the target link β€” and it does that when the target link is a dpia link. literally that's the vibe check. 🫢


πŸ“ RETURN πŸ“

true β€” if the host router index is found and valid. that's the slay condition, both boxes gotta be checked bestie βœ…βœ¨


🧚 SEE ALSO 🧚

the friend group, the whole group chat, everybody's invited πŸ’…:


ok that's the entire page bestie, no filler, no lore, just vibes and a bool 🌈

and that's a wrap!! πŸŽ€ this iconic little page lives at ./drivers/gpu/drm/amd/display/..., dated October 2026, and it's filed under dc_get_host_router_index(9) in the Kernel API Manual. mwah, go read a dc_process_dmub_* page next, ily πŸ’–

πŸ“¦ where this page comes from