Synopsis
int ctl_global_interrupts_set(int enable);
Description

ctl_global_interrupts_set disables or enables global interrupts according to the state enable. If enable is zero, interrupts are disabled and if enable is non-zero, interrupts are enabled. If ctl_global_interrupts_set is called and interrupts are already disabled then it will return 0. If ctl_global_interrupts_set is called and interrupts are enabled then it will return non-zero which may or may not represent the true interrupt disabled state. ctl_global_interrupts_set is used to provide exclusive access to CTL data structures the implementation of it may or may not disable global interrupts.