STRUCT TLMM_TEST_PRIV(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct tlmm_test_priv(9) πŸ’–

okay so picture this: it's a page straight out of the Kernel API Manual, and it's literally just the per-test context struct. yeah. per-test context. that's the whole vibe. she's a little bookkeeping queen and she ate πŸ’…


✨ NAME ✨

struct tlmm_test_priv β€” the per-test context, no cap 🫢


🌸 SYNOPSIS 🌸

struct tlmm_test_priv {
    atomic_t intr_count;
    atomic_t thread_count;
    unsigned int intr_op;
    atomic_t intr_op_remain;
    unsigned int thread_op;
    atomic_t thread_op_remain;
 };

like, look at her. six fields. all business. mostly atomic_t because we're being ✨responsible✨ in IRQ context, and two plain unsigned ints doing their own thing. iconic.


πŸŽ€ Members πŸŽ€

  • intr_count β€” the number of times the hard handler got hit while the TLMM_TEST_COUNT op was set. it's literally counting the hits, bestie πŸ”₯
  • thread_count β€” same energy, different handler: the number of times the thread handler was hit while the TLMM_TEST_COUNT op was set 🌸
  • intr_op β€” the operations that the hard IRQ handler is supposed to perform. that's her whole job πŸŽ€
  • intr_op_remain β€” how many times the TLMM_TEST_THEN_* operations should still be performed by the hard IRQ handler. yes it's a countdown, yes it's main character energy ⭐
  • thread_op β€” the operations the threaded IRQ handler is supposed to perform. threaded handler's turn to shine πŸ’œ
  • thread_op_remain β€” how many times the TLMM_TEST_THEN_* operations should still be performed by the threaded IRQ handler. remaining-count-down but make it threaded πŸ¦‹

ngl the whole struct is just counters and pending-op bookkeeping so the hard handler and the threaded handler each know what they're doing and how many times they're doing it. two ops, two remain-counters, two hit-counters. gender equality in the interrupt pipeline fr fr πŸ’…

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/pinctrl/qcom/tlmm-test.c β€” go read the source, it's giving lore πŸ‘‘

and that's the page!! tysm for coming to my ted talk 🫢 the footer energy: this one lives in ./drivers/pinctrl/qcom, dated October 2026, and it's filed under struct tlmm_test_priv(9). slay, bye πŸ’–βœ¨

πŸ“¦ where this page comes from