hsi_get_channel_id_by_name(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

hsi_get_channel_id_by_name β€” bestie, this is how you acquire a channel id by channel name πŸ’…

(also hi, you're reading a page from the Kernel API Manual, section 9 β€” welcome to the kernel-API corner of the group chat 🫢)


🌸 SYNOPSIS 🌸

int hsi_get_channel_id_by_name (struct hsi_client *cl , char *name );

πŸŽ€ ARGUMENTS πŸŽ€

  • cl β€” the HSI client, aka the one that's actually gonna use the channel πŸ‘‘
  • name β€” the name the channel is known under, iykyk 🏷️

πŸ’– DESCRIPTION πŸ’–

okay so here's the vibe: clients can call this function to get the hsi channel ids, and it works just like requesting IRQs or GPIOs by name β€” same energy, different subsystem, no cap ✨

heads up bestie: this function assumes the same channel configuration is used for RX and TX πŸ”₯ like, it's not out here checking both for you, it just assumes. so know that going in πŸ™ˆ

It returns -errno on error, or the channel id on success πŸ’€βž‘οΈπŸ‘‘


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/hsi/hsi_core.c (the main character of this whole story 🌟), plus all these iconic siblings:


and that's the whole page, bestie πŸŽ€ mwah πŸ’‹

source: ./drivers/hsi Β· dated October 2026 β€” literally go off, calendar πŸ“…βœ¨ slay 🫢

πŸ“¦ where this page comes from