coresight_select_best_sink(9)
π coresight_select_best_sink(9) π
okay so bestie, welcome to the Kernel API Manual β this page is all about coresight_select_best_sink, the function that returns the best sink for use as default from the two provided. main character energy fr fr β¨
β¨ NAME β¨
coresight_select_best_sink β return the best sink for use as default from the two provided.
π«Ά SYNOPSIS π«Ά
struct coresight_device * coresight_select_best_sink (struct
coresight_device *sink , int *depth , struct coresight_device *new_sink
, int new_depth );
π ARGUMENTS π
sinkβ the current best sink. like the reigning champ πdepthβ the search depth where the current sink was found.new_sinkβ the new sink that's getting compared against the current sink.new_depthβ the search depth where the new sink was found.
π¦ DESCRIPTION π¦
Sinks get prioritised according to coresight_dev_subtype_sink, and only subtypes CORESIGHT_DEV_SUBTYPE_SINK_BUFFER or higher are used. no cap.
When two sinks have equal priority, the sink closest to the source wins β that means the smallest search depth. iconic behavior honestly πΈ
The return vibe is: return new_sink & update depth if it's better than sink, else return sink. periodt. π«
π SEE ALSO π
- Kernel file
./drivers/hwtracing/coresight/coresight-core.c struct coresight_node(9)coresight_blocks_source(9)coresight_get_sink_by_id(9)coresight_get_ref(9)coresight_put_ref(9)_coresight_build_path(9)coresight_release_path(9)coresight_find_sink(9)coresight_find_default_sink(9)coresight_clear_default_sink(9)coresight_timeout_action(9)
and that's the whole page, bestie π«Ά this lil manual entry lives at source ./drivers/hwtracing/coresight, dated October 2026, and it's literally coresight_select_best_sink(9) β bye queen ππ
π¦ 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