STRUCT IIO_BUFFER_SETUP_OPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ struct iio_buffer_setup_ops(9) πŸŽ€

okay bestie, welcome to the Kernel API Manual β€” this is the page for struct iio_buffer_setup_ops(9), and it’s lowkey just the buffer-setup callback hangout spot. πŸ’–


🌸 NAME 🌸

struct iio_buffer_setup_ops β€” buffer setup related callbacks. That’s the vibe: a struct full of callbacks tied to buffer setup. No cap, that’s the whole name. ✨


✨ SYNOPSIS ✨

here’s the exact shape, bestie β€” don’t let the long line scare you:

struct iio_buffer_setup_ops {
    int (*preenable)(struct iio_dev *);
    int (*postenable)(struct iio_dev *);
    int (*predisable)(struct iio_dev *);
    int (*postdisable)(struct iio_dev *);
    bool (*validate_scan_mask)(struct iio_dev *indio_dev, const unsigned long *scan_mask);
};

πŸ’… Members πŸ’…

the whole cast, with exact callback names and their [DRIVER] little badges:

  • preenable β€” [DRIVER] function to run prior to marking buffer enabled.
  • postenable β€” [DRIVER] function to run after marking buffer enabled.
  • predisable β€” [DRIVER] function to run prior to marking buffer disabled.
  • postdisable β€” [DRIVER] function to run after marking buffer disabled.
  • validate_scan_mask β€” [DRIVER] function callback to check whether a given scan mask is valid for the device.

🌈 SEE ALSO 🌈

the full friend group β€” every single reference, no skips, periodt 🫢


okay that’s the whole page, bestie πŸ’– this one lives in ./include/linux/iio and is dated October 2026 β€” struct iio_buffer_setup_ops(9), out! πŸ«ΆπŸ’…

πŸ“¦ where this page comes from