dc_get_host_router_index(9)
π 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 π :
Kernel file ./drivers/gpu/drm/amd/display/dc/core/dc.c Overview(9)dc_stream_get_last_used_drr_vtotal(9)dc_stream_configure_crc(9)dc_stream_get_crc(9)dc_stream_adjust_vmin_vmax(9)dc_commit_state_no_check(9)dc_commit_streams(9)dc_check_state_update(9)dc_check_update_surfaces_for_stream(9)update_seamless_boot_flags(9)update_planes_and_stream_state(9)dc_check_address_only_update(9)build_dmub_cmd_list(9)could_mpcc_tree_change_for_active_pipes(9)commit_minimal_transition_state_in_dc_update(9)commit_minimal_transition_state(9)dc_update_state(9)dc_update_planes_and_stream(9)dc_enable_dcmode_clk_limit(9)dc_is_dmub_outbox_supported(9)dc_enable_dmub_notifications(9)dc_enable_dmub_outbox(9)dc_process_dmub_aux_transfer_async(9)dc_process_dmub_set_config_async(9)dc_process_dmub_set_mst_slots(9)dc_process_dmub_dpia_set_tps_notification(9)dc_process_dmub_dpia_hpd_int_enable(9)dc_print_dmub_diagnostic_data(9)dc_disable_accelerated_mode(9)dc_notify_vsync_int_state(9)dc_set_edp_power(9)dc_get_power_profile_for_dc_state(9)dc_get_det_buffer_size_from_state(9)should_commit_intermediate_context(9)dc_update_probes_prepare(9)dc_update_probes_execute(9)
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
- 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