ti_sci_cmd_dev_get_clcnt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 ti_sci_cmd_dev_get_clcnt(9) β€” get the context loss counter, bestie 🌸

okay so real talk, this page lives in the Kernel API Manual, and honestly? it's a little icon. a whole function that goes and asks the firmware "hey bestie, how many times did this device lose its context?" and it tells you. that's it. that's the whole job. πŸ’…


✨ NAME ✨

ti_sci_cmd_dev_get_clcnt β€” Get context loss counter πŸŽ€

like... literally the name says it. getting. the counter. of context loss. no cap. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

int ti_sci_cmd_dev_get_clcnt (const struct ti_sci_handle *handle , u32
id , u32 *count );

yep, that's the whole signature, exactly as it is, don't come for me about the spacing, the original ate and I'm not touching it. 😭


πŸ’– ARGUMENTS πŸ’–

three args, three little besties, let's meet them:

  • handle β€” Pointer to TISCI handle 🌈 β€” this is your golden ticket, the handle that gets you in the door with TISCI.
  • id β€” Device Identifier ⭐ β€” which device are we checking on? this little number tells the firmware.
  • count β€” Pointer to Context Loss counter to populate πŸ’« β€” you pass in a pointer, it fills in the number. so you don't get the answer back, you get a place for the answer. iconic behavior tbh.

πŸ‘‘ RETURN πŸ‘‘

0 if all went fine, else return appropriate error. πŸ”₯

that's the whole vibe check: 0 = slay, everything worked. anything else = not slay, and it'll hand you back the appropriate error so you know what went wrong. 🫢


🧚 SEE ALSO 🧚

okay this is the part where the friend group shows up in full force. everybody here is family, iykyk πŸ’œ

Kernel file ./drivers/firmware/ti_sci.c

and the whole extended crew:


and that's the whole page, bestie!! πŸ“ no options, no env vars, no exit statuses, just a tiny little function doing its thing and a very long list of friends. πŸ’€

shoutout to the fine people at ./drivers/firmware who shipped this in October 2026 β€” mwah, love u, thanks for the lore πŸ’–βœ¨πŸŽ€
πŸ“¦ where this page comes from