Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
industrialio-event.c File Reference
#include <linux/anon_inodes.h>
#include <linux/device.h>
#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/kfifo.h>
#include <linux/module.h>
#include <linux/poll.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/uaccess.h>
#include <linux/wait.h>
#include <linux/iio/iio.h>
#include "iio_core.h"
#include <linux/iio/sysfs.h>
#include <linux/iio/events.h>

Go to the source code of this file.

Data Structures

struct  iio_event_interface
 

Functions

int iio_push_event (struct iio_dev *indio_dev, u64 ev_code, s64 timestamp)
 
 EXPORT_SYMBOL (iio_push_event)
 
int iio_event_getfd (struct iio_dev *indio_dev)
 
int iio_device_register_eventset (struct iio_dev *indio_dev)
 
void iio_device_unregister_eventset (struct iio_dev *indio_dev)
 

Function Documentation

EXPORT_SYMBOL ( iio_push_event  )
int iio_device_register_eventset ( struct iio_dev indio_dev)

Definition at line 381 of file industrialio-event.c.

void iio_device_unregister_eventset ( struct iio_dev indio_dev)

Definition at line 447 of file industrialio-event.c.

int iio_event_getfd ( struct iio_dev indio_dev)

Definition at line 146 of file industrialio-event.c.

int iio_push_event ( struct iio_dev indio_dev,
u64  ev_code,
s64  timestamp 
)

iio_push_event() - try to add event to the list for userspace reading : IIO device structure : What event : When the event occurred

Definition at line 45 of file industrialio-event.c.