cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

kfifo_buf.h (616B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2#ifndef __LINUX_IIO_KFIFO_BUF_H__
      3#define __LINUX_IIO_KFIFO_BUF_H__
      4
      5struct iio_buffer;
      6struct iio_buffer_setup_ops;
      7struct iio_dev;
      8struct device;
      9
     10struct iio_buffer *iio_kfifo_allocate(void);
     11void iio_kfifo_free(struct iio_buffer *r);
     12
     13int devm_iio_kfifo_buffer_setup_ext(struct device *dev,
     14				    struct iio_dev *indio_dev,
     15				    const struct iio_buffer_setup_ops *setup_ops,
     16				    const struct attribute **buffer_attrs);
     17
     18#define devm_iio_kfifo_buffer_setup(dev, indio_dev, setup_ops)	\
     19	devm_iio_kfifo_buffer_setup_ext((dev), (indio_dev), (setup_ops), NULL)
     20
     21#endif