STRUCT AMS(9)
π 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.candams_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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms