ti_bandgap_talert_init(9)
β¨ ti_bandgap_talert_init(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one lives in the Linux kernel docs and it's all about ti_bandgap_talert_init β no cap, the name is a mouthful, but it's literally "setup and initialize talert handling." π
πΈ SYNOPSIS πΈ
int ti_bandgap_talert_init (struct ti_bandgap *bgp , struct
platform_device *pdev );
yes, that's the whole thing π
two args, one int coming back at you.
π¦ ARGUMENTS π¦
bgpβ pointer tostruct ti_bandgap. that's your bandgap buddy right there π«Άpdevβ pointer to devicestruct platform_device, aka the platform device struct for this device β¨
π DESCRIPTION π
okay so read this part, bestie, it's important: call this function only in case the bandgap features HAS(TALERT). like, only then. that's the vibe check for this one π
in that case, the driver needs to handle the TALERT signals as an IRQs. yep, TALERT is a normal IRQ, and it gets fired any time thresholds (hot or cold) are violated π₯π§
in these situation, the driver must reprogram the thresholds, accordingly to specified policy. periodt. π
π RETURN π
0 if no error, else return corresponding error. simple as that π
β SEE ALSO β
Kernel file ./drivers/thermal/ti-soc-thermal/ti-bandgap.c β go read it, iykyk π
ti_bandgap_readl(9)ti_bandgap_writel(9)macro to update bits.(9)ti_bandgap_power(9)ti_errata814_bandgap_read_temp(9)ti_bandgap_read_temp(9)ti_bandgap_talert_irq_handler(9)ti_bandgap_tshut_irq_handler(9)ti_bandgap_adc_to_mcelsius(9)ti_bandgap_validate(9)ti_bandgap_read_counter(9)ti_bandgap_read_counter_delay(9)ti_bandgap_read_update_interval(9)ti_bandgap_write_counter_delay(9)ti_bandgap_write_counter(9)ti_bandgap_write_update_interval(9)ti_bandgap_read_temperature(9)ti_bandgap_set_sensor_data(9)ti_bandgap_get_sensor_data(9)ti_bandgap_force_single_read(9)ti_bandgap_set_continuous_mode(9)ti_bandgap_get_trend(9)ti_bandgap_tshut_init(9)ti_bandgap_build(9)
that's the whole page, bestie π§ and before you dip β this one comes out of ./drivers/thermal/ti-soc-thermal, dated October 2026, and it's literally the ti_bandgap_talert_init(9) page. mwah, slay, go touch some thresholds ππ
π¦ 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