![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 */ 0002 #ifndef __nosy_user_h 0003 #define __nosy_user_h 0004 0005 #include <linux/ioctl.h> 0006 #include <linux/types.h> 0007 0008 #define NOSY_IOC_GET_STATS _IOR('&', 0, struct nosy_stats) 0009 #define NOSY_IOC_START _IO('&', 1) 0010 #define NOSY_IOC_STOP _IO('&', 2) 0011 #define NOSY_IOC_FILTER _IOW('&', 2, __u32) 0012 0013 struct nosy_stats { 0014 __u32 total_packet_count; 0015 __u32 lost_packet_count; 0016 }; 0017 0018 /* 0019 * Format of packets returned from the kernel driver: 0020 * 0021 * quadlet with timestamp (microseconds, CPU endian) 0022 * quadlet-padded packet data... (little endian) 0023 * quadlet with ack (little endian) 0024 */ 0025 0026 #endif /* __nosy_user_h */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |