coresight_find_default_sink(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– coresight_find_default_sink(9) πŸ’–

okay bestie, welcome to the Kernel API Manual entry for coresight_find_default_sink β€” yes it's a whole function name, yes it's a mouthful, no we are not shortening it, it's iconic and we respect it πŸ’…


✨ NAME ✨

coresight_find_default_sink β€” find a sink that's suitable for use as a default sink. that's it, that's the whole job πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

struct coresight_device * coresight_find_default_sink (struct coresight_device *csdev );

like, look at her go. no notes. πŸ”₯


🌸 ARGUMENTS 🌸

  • csdev β€” the starting source we're using to go find a connected sink. she's the main character, everything kicks off from her 🫢

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the vibe: this function walks the connections graph looking for a suitable sink to enable for the supplied source. like she's literally strolling through the graph being picky on purpose πŸ’…

how does she choose? she uses CoreSight device subtypes and distance from source to select the best sink. taste! discernment! we love a function with standards ✨

and if a sink is found? the default sink for this device gets set, and it'll be automatically used in future. no cap, she remembers, she's thoughtful like that πŸŽ€

this whole thing gets used in cases where the CoreSight user (perf / sysfs) has not selected a sink. so it's the "bestie, I got you, I'll pick" fallback energy 🫢


πŸ” SEE ALSO πŸ”

kernel file ./drivers/hwtracing/coresight/coresight-core.c, plus these absolute icons:


ok tiny reminder bestie: this page lives in ./drivers/hwtracing/coresight, and the version she's serving is October 2026. remember the date, she's a whole era πŸ’œ

anyway that's the page!! shady sinks, graph walks, default-sink setting, all documented and all slaying πŸŒˆπŸ’– go read the source, ily, bye 🧚

πŸ“¦ where this page comes from