Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux/iio
File: events.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
/* The industrial I/O - event passing to userspace
[1] Fix | Delete
*
[2] Fix | Delete
* Copyright (c) 2008-2011 Jonathan Cameron
[3] Fix | Delete
*
[4] Fix | Delete
* This program is free software; you can redistribute it and/or modify it
[5] Fix | Delete
* under the terms of the GNU General Public License version 2 as published by
[6] Fix | Delete
* the Free Software Foundation.
[7] Fix | Delete
*/
[8] Fix | Delete
#ifndef _IIO_EVENTS_H_
[9] Fix | Delete
#define _IIO_EVENTS_H_
[10] Fix | Delete
[11] Fix | Delete
#include <linux/ioctl.h>
[12] Fix | Delete
#include <linux/types.h>
[13] Fix | Delete
[14] Fix | Delete
/**
[15] Fix | Delete
* struct iio_event_data - The actual event being pushed to userspace
[16] Fix | Delete
* @id: event identifier
[17] Fix | Delete
* @timestamp: best estimate of time of event occurrence (often from
[18] Fix | Delete
* the interrupt handler)
[19] Fix | Delete
*/
[20] Fix | Delete
struct iio_event_data {
[21] Fix | Delete
__u64 id;
[22] Fix | Delete
__s64 timestamp;
[23] Fix | Delete
};
[24] Fix | Delete
[25] Fix | Delete
#define IIO_GET_EVENT_FD_IOCTL _IOR('i', 0x90, int)
[26] Fix | Delete
[27] Fix | Delete
#define IIO_EVENT_CODE_EXTRACT_TYPE(mask) ((mask >> 56) & 0xFF)
[28] Fix | Delete
[29] Fix | Delete
#define IIO_EVENT_CODE_EXTRACT_DIR(mask) ((mask >> 48) & 0x7F)
[30] Fix | Delete
[31] Fix | Delete
#define IIO_EVENT_CODE_EXTRACT_CHAN_TYPE(mask) ((mask >> 32) & 0xFF)
[32] Fix | Delete
[33] Fix | Delete
/* Event code number extraction depends on which type of event we have.
[34] Fix | Delete
* Perhaps review this function in the future*/
[35] Fix | Delete
#define IIO_EVENT_CODE_EXTRACT_CHAN(mask) ((__s16)(mask & 0xFFFF))
[36] Fix | Delete
#define IIO_EVENT_CODE_EXTRACT_CHAN2(mask) ((__s16)(((mask) >> 16) & 0xFFFF))
[37] Fix | Delete
[38] Fix | Delete
#define IIO_EVENT_CODE_EXTRACT_MODIFIER(mask) ((mask >> 40) & 0xFF)
[39] Fix | Delete
#define IIO_EVENT_CODE_EXTRACT_DIFF(mask) (((mask) >> 55) & 0x1)
[40] Fix | Delete
[41] Fix | Delete
#endif /* _IIO_EVENTS_H_ */
[42] Fix | Delete
[43] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function