summaryrefslogtreecommitdiff
path: root/include/linux/unix_diag.h
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@parallels.com>2011-12-15 06:44:35 +0400
committerDavid S. Miller <davem@davemloft.net>2011-12-16 22:48:27 +0400
commit22931d3b906cd0a1726a49a09713f9220a5fab8a (patch)
tree33e303ac5be89b1490e6beabd311ca3e6d6860bc /include/linux/unix_diag.h
parentfa7ff56f75add89bbedaf2dfcfa8f6661e8e8b3a (diff)
downloadlinux-22931d3b906cd0a1726a49a09713f9220a5fab8a.tar.xz
unix_diag: Basic module skeleton
Includes basic module_init/_exit functionality, dump/get_exact stubs and declares the basic API structures for request and response. Signed-off-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/unix_diag.h')
-rw-r--r--include/linux/unix_diag.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/linux/unix_diag.h b/include/linux/unix_diag.h
new file mode 100644
index 000000000000..445184a85763
--- /dev/null
+++ b/include/linux/unix_diag.h
@@ -0,0 +1,24 @@
+#ifndef __UNIX_DIAG_H__
+#define __UNIX_DIAG_H__
+
+struct unix_diag_req {
+ __u8 sdiag_family;
+ __u8 sdiag_protocol;
+ __u16 pad;
+ __u32 udiag_states;
+ __u32 udiag_ino;
+ __u32 udiag_show;
+ __u32 udiag_cookie[2];
+};
+
+struct unix_diag_msg {
+ __u8 udiag_family;
+ __u8 udiag_type;
+ __u8 udiag_state;
+ __u8 pad;
+
+ __u32 udiag_ino;
+ __u32 udiag_cookie[2];
+};
+
+#endif