kernel lib/kfifo.c中有两段代码如下: #define kfifo_in_spinlocked(fifo, buf, n, lock) \ ({ \ 无符号长__flags; \ 无符号整型 __ret; \ spin_lock_irqsave(锁,
* - Replace the use of kfifo_put into kfifo_in_spinlocked and kfifo_get * into kfifo_out_spinlocked * Note: the spinlock pointer formerly passed to kfifo_init/kfifo_alloc * must be passed now to the kfifo_in_spinlocked and kfifo_out_spinlocked * as the last parameter * - The former...
* must be passed now to the kfifo_in_spinlocked and kfifo_out_spinlocked * as the last parameter * - The formerly __kfifo_* functions are renamed into kfifo_* */ /* * Note about locking: There is no locking required until only one reader ...
#define kfifo_in_spinlocked(fifo, buf, n, lock) \ ({ \ unsigned long __flags; \ unsigned int __ret; \ spin_lock_irqsave(lock, __flags); \ __ret = kfifo_in(fifo, buf, n); \ spin_unlock_irqrestore(lock, __flags); \ ...
@@ -1269,7 +1269,7 @@ void memory_failure_queue(unsigned long pfn, int trapno, int flags) mf_cpu = &get_cpu_var(memory_failure_cpu); spin_lock_irqsave(&mf_cpu->lock, proc_flags); if (kfifo_put(&mf_cpu->fifo, &entry)) if (kfifo_put(&mf_cpu->fifo, entry)) schedule_work...
/ include / linux / kfifo.h v6 v6.13 v6.12 v6.12.1 v6.12 v6.12-rc7 v6.12-rc6 v6.12-rc5 v6.12-rc4 v6.12-rc3 v6.12-rc2 v6.12-rc1 v6.11 v6.10 v6.9 v6.8 v6.7 v6.6 v6.5 v6.4 v6.3 v6.2 v6.1 v6.0 v5
(fifo); \ spin_unlock_irqrestore(lock, __flags); \ __ret; \ }) /** * kfifo_is_empty_spinlocked_noirqsave - returns true if the fifo is empty * using a spinlock for locking, doesn't disable interrupts * @fifo: address of the fifo to be used * @lock: spinlock to be us...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...