Hi,
This is regarding the void spin_lock_irqsave(spinlock_t *lock, unsigned long flags);
function call. It is mentioned that previous interrupt state is stored in flags and we can restore them by passing this to spin_unlock_irqrestore
function.
But I did not get how flags which is passed by values captures the previous interrupt state when spin_lock_irqsave
is called.