STRUCT REPLICATOR_DRVDATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct replicator_drvdata(9)

okay so bestie, welcome to the Kernel API Manual ✨ and today's main character is struct replicator_drvdata β€” literally the little data blob that holds all the specifics associated to a replicator component πŸŽ€ she's not famous, she's just holding everything together, iykyk.


πŸ¦‹ NAME πŸ¦‹

struct replicator_drvdata β€” specifics associated to a replicator component. that's it, that's the whole vibe πŸ’– she carries the per-component details, no cap.


✨ SYNOPSIS ✨

struct replicator_drvdata {
    void __iomem            *base;
    struct clk              *atclk;
    struct clk              *pclk;
    struct coresight_device *csdev;
    raw_spinlock_t spinlock;
    bool check_idfilter_val;
        };

like, look at her. six fields. perfectly composed. glowing. 🌸


🫢 Members 🫢

okay let's go through the squad one by one, because each of these is doing a job and we respect it:

  • base β€” the memory mapped base address for this component πŸ’œ also, plot twist, she doubles as the indicator for whether this one is programmable or not. so base is out here doing two jobs and not complaining. we love a multitasker πŸ‘‘
  • atclk β€” optional clock for the core parts of the replicator ⏰ yes she's optional, don't come for her.
  • pclk β€” the APB clock if present, otherwise NULL 🫠 so if it's not there, she's just NULL, and that's valid, that's a valid state, we don't judge.
  • csdev β€” component vitals needed by the framework 🩺 like the framework's little health chart. essential. iconic.
  • spinlock β€” serialize enable/disable operations πŸ”’ so nobody's enable and nobody's disable is out here colliding into each other. one at a time, bestie. form a line. the raw_spinlock_t will handle it πŸ’…
  • check_idfilter_val β€” check if the context is lost upon clock removal 😭 yes this is a real flag and yes it does exactly what it says: it checks whether the context got lost when the clock got removed. no notes. actual factual.

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/hwtracing/coresight/coresight-replicator.c β€” go read the source, bestie, that's where she actually lives 🧚 stars aligned, code compiled, etc.

fr fr, that's the whole struct. every member, every type, every note. nothing skipped, nothing invented, we ate and left no crumbs πŸ’…βœ¨

kisses and merge conflicts, this has been struct replicator_drvdata(9) from ./drivers/hwtracing/coresight πŸ’– dated October 2026, and no I will NOT stop talking about it πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from