hsi_get_channel_id_by_name(9)
β¨ 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:
hsi_port_unregister_clients(9)hsi_unregister_controller(9)hsi_register_controller(9)hsi_register_client_driver(9)hsi_put_controller(9)hsi_alloc_controller(9)hsi_free_msg(9)hsi_alloc_msg(9)hsi_async(9)hsi_claim_port(9)hsi_release_port(9)hsi_register_port_event(9)hsi_unregister_port_event(9)hsi_event(9)
and that's the whole page, bestie π mwah π
source: ./drivers/hsi Β· dated October 2026 β literally go off, calendar π
β¨ slay π«Ά
π¦ 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