ti_sci_get_device_state(9)
π ti_sci_get_device_state(9)
Okay so welcome to the Kernel API Manual, bestie β this little page is all about ti_sci_get_device_state, which is literally the Get device state helper. It's giving "I just wanna know what state this device is in" energy, and honestly? Same. π«Ά
β¨ NAME β¨
ti_sci_get_device_state β the Get device state helper. That's it, that's the whole vibe. She's a helper function and she knows it. π
πΈ SYNOPSIS πΈ
int ti_sci_get_device_state (const struct ti_sci_handle *handle , u32 id
, u32 *clcnt , u32 *resets , u8 *p_state , u8 *c_state );
Notice how she returns an int β that's your vibe check at the end, iykyk. β¨
π ARGUMENTS π
Bestie, there are six of these, so buckle up:
handleβ Handle to the device. This is your golden ticket, your main character pointer. Don't lose her. πidβ Device Identifier. Au32that says which device we're talking about β no cap, this matters.clcntβ Pointer to Context Loss Count. You pass the address, she fills in the clcnt tea. πresetsβ pointer to resets. Yeah, lowercase "pointer" in the original, we're keeping it, we don't fix what isn't ours. πp_stateβ pointer to p_state. Short, sweet, mysterious β but it's au8 *, so jot that down. π¦c_stateβ pointer to c_state. Also au8 *. Two little state pointers living their best lives. π
Like, notice thathandleandidcome in as values butclcnt,resets,p_stateandc_stateare all pointers β so she can write the results back out to you. Iconic behaviour, fr fr. π
π RETURN π
0 if all went fine, else return appropriate error. That's the whole tea β zero means slay, anything else means something went sideways and you should go read what the error is saying. π
π¦ SEE ALSO π¦
Kernel file ./drivers/firmware/ti_sci.c β and here's the whole friend group, like, every single one, because we don't do "and friends" round here:
struct ti_sci_xfer(9)struct ti_sci_xfers_info(9)struct ti_sci_desc(9)struct ti_sci_irq(9)struct ti_sci_info(9)ti_sci_debug_show(9)ti_sci_debugfs_create(9)ti_sci_dump_header_dbg(9)ti_sci_rx_callback(9)ti_sci_get_one_xfer(9)ti_sci_put_one_xfer(9)ti_sci_do_xfer(9)ti_sci_cmd_get_revision(9)ti_sci_is_response_ack(9)ti_sci_set_device_state(9)ti_sci_cmd_get_device(9)ti_sci_cmd_get_device_exclusive(9)ti_sci_cmd_idle_device(9)ti_sci_cmd_idle_device_exclusive(9)ti_sci_cmd_put_device(9)ti_sci_cmd_dev_is_valid(9)ti_sci_cmd_dev_get_clcnt(9)ti_sci_cmd_dev_is_idle(9)ti_sci_cmd_dev_is_stop(9)ti_sci_cmd_dev_is_on(9)ti_sci_cmd_dev_is_trans(9)ti_sci_cmd_set_device_resets(9)ti_sci_cmd_get_device_resets(9)ti_sci_set_clock_state(9)ti_sci_cmd_get_clock_state(9)ti_sci_cmd_get_clock(9)ti_sci_cmd_idle_clock(9)ti_sci_cmd_put_clock(9)ti_sci_cmd_clk_is_auto(9)ti_sci_cmd_clk_is_on(9)ti_sci_cmd_clk_is_off(9)ti_sci_cmd_clk_set_parent(9)ti_sci_cmd_clk_get_parent(9)ti_sci_cmd_clk_get_num_parents(9)ti_sci_cmd_clk_get_match_freq(9)ti_sci_cmd_clk_set_freq(9)ti_sci_cmd_clk_get_freq(9)ti_sci_cmd_prepare_sleep(9)ti_sci_msg_cmd_query_fw_caps(9)ti_sci_cmd_set_io_isolation(9)ti_sci_msg_cmd_lpm_wake_reason(9)ti_sci_cmd_set_device_constraint(9)ti_sci_cmd_set_latency_constraint(9)ti_sci_cmd_lpm_abort(9)ti_sci_get_resource_range(9)ti_sci_cmd_get_resource_range(9)ti_sci_cmd_get_resource_range_from_shost(9)ti_sci_manage_irq(9)ti_sci_irq_hash(9)ti_sci_irq_equal(9)ti_sci_set_irq(9)ti_sci_free_irq(9)ti_sci_cmd_set_irq(9)ti_sci_cmd_set_event_map(9)ti_sci_cmd_free_irq(9)ti_sci_cmd_free_event_map(9)ti_sci_cmd_rm_ring_cfg(9)ti_sci_cmd_rm_psil_pair(9)ti_sci_cmd_rm_psil_unpair(9)ti_sci_cmd_rm_udmap_tx_ch_cfg(9)ti_sci_cmd_rm_udmap_rx_ch_cfg(9)ti_sci_cmd_rm_udmap_rx_flow_cfg(9)ti_sci_cmd_proc_request(9)ti_sci_cmd_proc_release(9)ti_sci_cmd_proc_handover(9)ti_sci_cmd_proc_set_config(9)ti_sci_cmd_proc_set_control(9)ti_sci_cmd_proc_get_status(9)ti_sci_get_handle(9)ti_sci_put_handle(9)devm_ti_sci_get_handle(9)ti_sci_get_by_phandle(9)devm_ti_sci_get_by_phandle(9)ti_sci_get_free_resource(9)ti_sci_release_resource(9)ti_sci_get_num_resources(9)devm_ti_sci_get_resource_sets(9)devm_ti_sci_get_of_resource(9)devm_ti_sci_get_resource(9)
That's the whole page, bestie β no notes. π
And for the cute sign-off: this one lives in the source dir ./drivers/firmware, it's dated October 2026, and it's filed under ti_sci_get_device_state(9) in the Kernel API Manual. Go drink some water, then go read the source. πΈπβ¨
π¦ 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