about in_atomic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi:

Can anyone tell me the usage of in_atomic() macro?

(preempt_count() & ~PREEMPT_ACTIVE) means in interrupt or softirq or kernel preemption is disabled.
kernel_locked() means we are in BKL.



# define in_atomic()    ((preempt_count() & ~PREEMPT_ACTIVE) != kernel_locked())

thx


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux