---
name: "kfifo_in_spinlocked"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/kfifo_in_spinlocked"
---

# kfifo\_in\_spinlocked(9)

put data into the fifo using a spinlock for locking

## NAME

kfifo\_in\_spinlocked - put data into the fifo using a spinlock for locking

## SYNOPSIS

**kfifo\_in\_spinlocked(***fifo***,** *buf***,** *n***,** *lock***);**

## ARGUMENTS

*fifo*

address of the fifo to be used

*buf*

the data to be added

*n*

number of elements to be added

*lock*

pointer to the spinlock to use for locking

## DESCRIPTION

This macro copies the given values buffer into the fifo and returns the number of copied elements.

## COPYRIGHT
