* - 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...
fifo->out+=len;returnlen; } EXPORT_SYMBOL(__kfifo_out); unsignedint__kfifo_out_peek(struct__kfifo *fifo,void*buf, unsignedintlen) { unsignedintl; l= fifo->in- fifo->out;if(len >l) len=l; kfifo_copy_out(fifo, buf, len, fifo->out);returnlen; } EXPORT_SYMBOL(__kfifo_out_pee...
kernel lib/kfifo.c中有两段代码如下: #define kfifo_in_spinlocked(fifo, buf, n, lock) \ ({ \ 无符号长__flags; \ 无符号整型 __ret; \ spin_lock_irqsave(锁,
__kfifo_out(__kfifo, __buf, __n); \ }) \ )/** * kfifo_out_spinlocked - get data from the fifo using a spinlock for locking * @fifo: address of the fifo to be used * @buf: pointer to the storage buffer * @n: max. number of elements to get * @lock: pointer to the ...
* 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 formerly __kfifo_* functions are renamed into kfifo_* */ /...
typeof(__tmp->ptr) __dummy __attribute__ ((unused)) = NULL; \ __buf = __dummy; \ } \ (__recsize) ? \ __kfifo_out_peek_r(__kfifo, __buf, __n, __recsize) : \ __kfifo_out_peek(__kfifo, __buf, __n); \2...
/ 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
security sound tools usr virt .clang-format .cocciconfig .get_maintainer.ignore .gitattributes .gitignore .mailmap COPYING CREDITS Kbuild Kconfig MAINTAINERS Makefile README Breadcrumbs mptcp_net-next /include /linux / kfifo.h Latest commit brgl kfifo: provide kfifo_is_empty_spinl...
if(!kfifo_put(&rt2x00dev->txstatus_fifo,tx_status)) rt2x00_warn(rt2x00dev,"TX status FIFO overrun\n"); queue_work(rt2x00dev->workqueue,&rt2x00dev->txdone_work); 2 changes: 1 addition & 1 deletion2drivers/pci/pcie/aer/aerdrv_core.c ...