nosy-user.h 629 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __nosy_user_h
  3. #define __nosy_user_h
  4. #include <linux/ioctl.h>
  5. #include <linux/types.h>
  6. #define NOSY_IOC_GET_STATS _IOR('&', 0, struct nosy_stats)
  7. #define NOSY_IOC_START _IO('&', 1)
  8. #define NOSY_IOC_STOP _IO('&', 2)
  9. #define NOSY_IOC_FILTER _IOW('&', 2, __u32)
  10. struct nosy_stats {
  11. __u32 total_packet_count;
  12. __u32 lost_packet_count;
  13. };
  14. /*
  15. * Format of packets returned from the kernel driver:
  16. *
  17. * quadlet with timestamp (microseconds, CPU endian)
  18. * quadlet-padded packet data... (little endian)
  19. * quadlet with ack (little endian)
  20. */
  21. #endif /* __nosy_user_h */