Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 1 | /**************************************************************************** |
| 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> |
| 22 | struct unix_diag_req { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 23 | __u8 sdiag_family; |
| 24 | __u8 sdiag_protocol; |
| 25 | __u16 pad; |
| 26 | __u32 udiag_states; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 27 | __u32 udiag_ino; |
| 28 | __u32 udiag_show; |
| 29 | __u32 udiag_cookie[2]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 30 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | #define UDIAG_SHOW_NAME 0x00000001 |
| 32 | #define UDIAG_SHOW_VFS 0x00000002 |
| 33 | #define UDIAG_SHOW_PEER 0x00000004 |
| 34 | #define UDIAG_SHOW_ICONS 0x00000008 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 35 | #define UDIAG_SHOW_RQLEN 0x00000010 |
| 36 | #define UDIAG_SHOW_MEMINFO 0x00000020 |
Christopher Ferris | b8a95e2 | 2019-10-02 18:29:20 -0700 | [diff] [blame] | 37 | #define UDIAG_SHOW_UID 0x00000040 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 38 | struct unix_diag_msg { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 39 | __u8 udiag_family; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 40 | __u8 udiag_type; |
| 41 | __u8 udiag_state; |
| 42 | __u8 pad; |
| 43 | __u32 udiag_ino; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 44 | __u32 udiag_cookie[2]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 45 | }; |
| 46 | enum { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 47 | UNIX_DIAG_NAME, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 48 | UNIX_DIAG_VFS, |
| 49 | UNIX_DIAG_PEER, |
| 50 | UNIX_DIAG_ICONS, |
| 51 | UNIX_DIAG_RQLEN, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 52 | UNIX_DIAG_MEMINFO, |
| 53 | UNIX_DIAG_SHUTDOWN, |
Christopher Ferris | b8a95e2 | 2019-10-02 18:29:20 -0700 | [diff] [blame] | 54 | UNIX_DIAG_UID, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 55 | __UNIX_DIAG_MAX, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 56 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 57 | #define UNIX_DIAG_MAX (__UNIX_DIAG_MAX - 1) |
| 58 | struct unix_diag_vfs { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 59 | __u32 udiag_vfs_ino; |
| 60 | __u32 udiag_vfs_dev; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 61 | }; |
| 62 | struct unix_diag_rqlen { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 63 | __u32 udiag_rqueue; |
| 64 | __u32 udiag_wqueue; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 65 | }; |
| 66 | #endif |