STRUCT AMS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is the <pink>struct ams(9)</pink> manual page, and the name is literally struct ams β€” it’s the structure that contains the necessary state for xilinx-ams to operate. no cap ✨


✨ SYNOPSIS ✨

here’s the whole struct, copied exactly because we do not mess with the code πŸ’…

       struct ams {
           void __iomem *base;
           void __iomem *ps_base;
           void __iomem *pl_base;
           struct clk *clk;
           struct device *dev;
           struct mutex lock;
           spinlock_t intr_lock;
           unsigned int alarm_mask;
           unsigned int current_masked_alarm;
           u64 intr_mask;
           struct delayed_work ams_unmask_work;
        };

πŸ’… Members πŸ’…

okay so every single member, let’s go 🫢

  • base β€” physical base address of device. it’s giving β€œwhere the device lives” energy 🏠
  • ps_base β€” physical base address of PS device. yes, the PS one specifically πŸ’œ
  • pl_base β€” physical base address of PL device. and this one is for PL, periodt ✨
  • clk β€” clocks associated with the device. tick tock bestie ⏰
  • dev β€” pointer to device struct. main character pointer energy πŸ‘‘
  • lock β€” to handle multiple user interaction. keeping things from getting messy πŸŽ€
  • intr_lock β€” to protect interrupt mask values. bodyguard for the mask values fr fr πŸ›‘οΈ
  • alarm_mask β€” alarm configuration. alarm vibes configured here 🚨
  • current_masked_alarm β€” currently masked due to alarm. yup, it’s masked right now because of alarm 😭
  • intr_mask β€” interrupt configuration. interrupt config lives here πŸ’₯
  • ams_unmask_work β€” re-enables event once the event condition disappears. it literally brings the event back when the condition is gone πŸ”

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/iio/adc/xilinx-ams.c and ams_unmask_worker(9) β€” those are the SEE ALSO refs, iykyk 🌈

okay that’s the whole page πŸ’– source/version: ./drivers/iio/adc; date: October 2026; manual: struct ams(9). mwah 🫢✨

πŸ“¦ where this page comes from