INTR

Enable, disable, show interrupts

INTR

Show, enable or disable the CMIC interrupts of the unit.

On Trident 3 this command is expected to fail without printing anything: the form with cmc/stat is only offered on chips with the older CMICm interface, and the plain form needs a CMIC interrupt-status register that the Trident 3 does not have. The grammar below is what the shell accepts on chips where it works.

Forms: intr enable [<mask>|<irq_name> …], intr disable […], intr mask (enabled interrupts), intr pending (pending interrupts) and intr names (names and masks). The keywords use the usual abbreviations (e, d, m, p, n). Enabling or disabling interrupts that the SDK relies on stops link, L2 and packet events from reaching syncd.

Unvalidated

drivshell> intr mask

Built-in help

Usage:
 intr enable  [cmc <cmcId> stat <statId>] [<mask>/<irq_name> ...]  - Enable interrupts
 intr disable [cmc <cmcId> stat <statId>] [<mask>/<irq_name> ...]  - Disable interrupts
 intr mask    [cmc <cmcId> stat <statId>]                          - Show current mask reg
 intr pending [cmc <cmcId> stat <statId>]                          - Show current state
 intr names   [cmc <cmcId> stat <statId>]                          - List interrupt names
Note:
 Valid cmcId range  : 0-2
 Valid statId range : 0-2

Further reading

BCM-SDK命令的使用.pdf, bcm cli 命令, BCM_SDK命令.