stm_source_link_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the Kernel API Manual β€” this page is all about stm_source_link_add, and yes it's a whole vibe. it's basically the matchmaker function of the STM world and i'm obsessed 🫢


✨ NAME ✨

stm_source_link_add β€” connect an stm_source device to an stm device πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int stm_source_link_add (struct stm_source_device *src , struct
stm_device *stm );

like, that's the whole signature, no cap ✨


🌸 ARGUMENTS 🌸

  • src β€” your stm_source device, the one with the tea to spill β˜•
  • stm β€” your stm device, the one who's gonna hear all about it πŸ‘‘

πŸŽ€ DESCRIPTION πŸŽ€

so what this function does is establish a link from stm_source to an stm device β€” the whole point being that the former (that's stm_source, hi) can send out trace data to the latter (that's stm, hiii). it's giving "i know a guy" energy, fr fr πŸ”₯


⭐ RETURN ⭐

0 on success, -errno otherwise. slay when it's zero, weep when it's not 😭

ngl if you get anything that isn't 0, that's your -errno telling you something went sideways. read the room (and the errno) πŸ’€

🌈 SEE ALSO 🌈

kernel file ./drivers/hwtracing/stm/core.c plus the whole friend group:


okay that's the whole page bestie, no notes πŸ’œ this one comes straight out of ./drivers/hwtracing/stm, dated October 2026, and it's signed stm_source_link_add(9) β€” iconic, periodt πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from