STRUCT ETB_DRVDATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct etb_drvdata ✨

okay so bestie, this is struct etb_drvdata β€” the specifics associated to an ETB component πŸ’… it's from the Kernel API Manual, section 9, and honestly? she's iconic. let's get into it πŸŽ€


🌸 SYNOPSIS 🌸

here's the whole glow-up, verbatim, no cap:

struct etb_drvdata {
    void __iomem            *base;
    struct clk              *atclk;
    struct coresight_device *csdev;
    struct miscdevice       miscdev;
    raw_spinlock_t spinlock;
    atomic_t reading;
    pid_t pid;
    u8 *buf;
    u32 buffer_depth;
    u32 trigger_cntr;
 };

like, look at her. ten fields. all of them important. we do not skip fields in this house 🫢


πŸ‘‘ Members πŸ‘‘

okay so every single field, one by one, no skipsies:

  • base β€” the memory mapped base address for this component. it's giving where everything lives ✨
  • atclk β€” optional clock for the core parts of the ETB. optional! she's flexible πŸ’–
  • csdev β€” component vitals needed by the framework. the essentials, the bare minimum, the skincare routine 🧚
  • miscdev β€” specifics to handle the "/dev/xyz.etb" entry. yes that's literally the path, keep it exactly like that πŸ’…
  • spinlock β€” only one at a time pls. no cutting in line πŸ™ˆ
  • reading β€” synchronise user space access to etb buffer. keep it orderly bestie πŸ¦‹
  • pid β€” Process ID of the process being monitored by the session that is using this component. lowkey the main character tbh πŸ‘‘
  • buf β€” area of memory where ETB buffer content gets sent. the destination, the moment, the slay 🌈
  • buffer_depth β€” size of buf. how much room she's got, fr fr πŸ“
  • trigger_cntr β€” amount of words to store after a trigger. after. of words. the amount. periodt ⭐

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/hwtracing/coresight/coresight-etb10.c

iykyk 😭 go read the source, it's right there.


heads up bestie: everything above is straight from the Kernel API Manual, section 9. no invented facts, no vibes-based guessing, we only serve accuracy in this group chat πŸ’œ

sign-off time πŸ’Œ this page lives in ./drivers/hwtracing/coresight, dated October 2026, and it's struct etb_drvdata(9) through and through. mwah, drink some water, and go read your kernel source πŸŽ€πŸ’–

πŸ“¦ where this page comes from