blob: ff2138e13b532beb89efcf1da91754ac80a047ee [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef __UNIX_DIAG_H__
20#define __UNIX_DIAG_H__
21#include <linux/types.h>
22struct unix_diag_req {
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080024 __u8 sdiag_family;
25 __u8 sdiag_protocol;
26 __u16 pad;
27 __u32 udiag_states;
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 __u32 udiag_ino;
30 __u32 udiag_show;
31 __u32 udiag_cookie[2];
Ben Cheng655a7c02013-10-16 16:09:24 -070032};
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define UDIAG_SHOW_NAME 0x00000001
35#define UDIAG_SHOW_VFS 0x00000002
36#define UDIAG_SHOW_PEER 0x00000004
37#define UDIAG_SHOW_ICONS 0x00000008
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define UDIAG_SHOW_RQLEN 0x00000010
40#define UDIAG_SHOW_MEMINFO 0x00000020
41struct unix_diag_msg {
Tao Baod7db5942015-01-28 10:07:51 -080042 __u8 udiag_family;
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 __u8 udiag_type;
45 __u8 udiag_state;
46 __u8 pad;
47 __u32 udiag_ino;
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 __u32 udiag_cookie[2];
Ben Cheng655a7c02013-10-16 16:09:24 -070050};
51enum {
Tao Baod7db5942015-01-28 10:07:51 -080052 UNIX_DIAG_NAME,
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 UNIX_DIAG_VFS,
55 UNIX_DIAG_PEER,
56 UNIX_DIAG_ICONS,
57 UNIX_DIAG_RQLEN,
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 UNIX_DIAG_MEMINFO,
60 UNIX_DIAG_SHUTDOWN,
61 __UNIX_DIAG_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -070062};
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define UNIX_DIAG_MAX (__UNIX_DIAG_MAX - 1)
65struct unix_diag_vfs {
Tao Baod7db5942015-01-28 10:07:51 -080066 __u32 udiag_vfs_ino;
67 __u32 udiag_vfs_dev;
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69};
70struct unix_diag_rqlen {
Tao Baod7db5942015-01-28 10:07:51 -080071 __u32 udiag_rqueue;
72 __u32 udiag_wqueue;
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74};
75#endif