sensor_event_notify()

Set up the notification method for a sensor.

Synopsis:

#include <sensor/libsensor.h>
 
int sensor_event_notify(sensor_t *sensor, struct sigevent *ev)

Arguments:

sensor

The sensor to modify.

ev

The sigevent to use as a notification.

Library:

libsensor

Description:

This function calls ionotify() to arm the system with the sigevent that you want to use as a notification.

The sigevent is cached in the sensor.

Returns:

EOK on success, an errno value otherwise.

Last modified: 2013-12-21

comments powered by Disqus