about in_atomic
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: about in_atomic
- From: "Min-Hua Chen" <orca.chen@xxxxxxxxx>
- Date: Sun, 16 Apr 2006 16:56:12 +0800
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]