coresight_select_best_sink(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🌈


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