Nios® V Processor Software Developer Handbook

ID 743810
Date 4/07/2025
Public

Visible to Intel only — GUID: gcs1652929751203

Ixiasoft

Document Table of Contents

16.1.1.38. alt_irq_enabled()

Prototype

int alt_irq_enabled (void)

Commonly Called By

Device drivers

Thread-safe

Yes.

Available from ISR

Yes.

Include

<sys/alt_irq.h>

Description

Determines whether interrupts are globally enabled by checking if mstatus.mie bit is set.

Return

Returns zero if interrupt-enable bit is disabled, and non-zero otherwise.