~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/net/compat.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/net/compat.h (Version linux-6.11.5) and /include/net/compat.h (Version linux-3.10.108)


  1 /* SPDX-License-Identifier: GPL-2.0 */         << 
  2 #ifndef NET_COMPAT_H                                1 #ifndef NET_COMPAT_H
  3 #define NET_COMPAT_H                                2 #define NET_COMPAT_H
  4                                                     3 
  5                                                     4 
  6 struct sock;                                        5 struct sock;
  7                                                     6 
                                                   >>   7 #if defined(CONFIG_COMPAT)
                                                   >>   8 
  8 #include <linux/compat.h>                           9 #include <linux/compat.h>
  9                                                    10 
 10 struct compat_msghdr {                             11 struct compat_msghdr {
 11         compat_uptr_t   msg_name;       /* voi     12         compat_uptr_t   msg_name;       /* void * */
 12         compat_int_t    msg_namelen;               13         compat_int_t    msg_namelen;
 13         compat_uptr_t   msg_iov;        /* str     14         compat_uptr_t   msg_iov;        /* struct compat_iovec * */
 14         compat_size_t   msg_iovlen;                15         compat_size_t   msg_iovlen;
 15         compat_uptr_t   msg_control;    /* voi     16         compat_uptr_t   msg_control;    /* void * */
 16         compat_size_t   msg_controllen;            17         compat_size_t   msg_controllen;
 17         compat_uint_t   msg_flags;                 18         compat_uint_t   msg_flags;
 18 };                                                 19 };
 19                                                    20 
 20 struct compat_mmsghdr {                            21 struct compat_mmsghdr {
 21         struct compat_msghdr msg_hdr;              22         struct compat_msghdr msg_hdr;
 22         compat_uint_t        msg_len;              23         compat_uint_t        msg_len;
 23 };                                                 24 };
 24                                                    25 
 25 struct compat_cmsghdr {                            26 struct compat_cmsghdr {
 26         compat_size_t   cmsg_len;                  27         compat_size_t   cmsg_len;
 27         compat_int_t    cmsg_level;                28         compat_int_t    cmsg_level;
 28         compat_int_t    cmsg_type;                 29         compat_int_t    cmsg_type;
 29 };                                                 30 };
 30                                                    31 
 31 struct compat_rtentry {                        !!  32 extern int compat_sock_get_timestamp(struct sock *, struct timeval __user *);
 32         u32             rt_pad1;               !!  33 extern int compat_sock_get_timestampns(struct sock *, struct timespec __user *);
 33         struct sockaddr rt_dst;         /* tar << 
 34         struct sockaddr rt_gateway;     /* gat << 
 35         struct sockaddr rt_genmask;     /* tar << 
 36         unsigned short  rt_flags;              << 
 37         short           rt_pad2;               << 
 38         u32             rt_pad3;               << 
 39         unsigned char   rt_tos;                << 
 40         unsigned char   rt_class;              << 
 41         short           rt_pad4;               << 
 42         short           rt_metric;      /* +1  << 
 43         compat_uptr_t   rt_dev;         /* for << 
 44         u32             rt_mtu;         /* per << 
 45         u32             rt_window;      /* Win << 
 46         unsigned short  rt_irtt;        /* Ini << 
 47 };                                             << 
 48                                                    34 
 49 int __get_compat_msghdr(struct msghdr *kmsg, s !!  35 #else /* defined(CONFIG_COMPAT) */
 50                         struct sockaddr __user !!  36 /*
 51 int get_compat_msghdr(struct msghdr *, struct  !!  37  * To avoid compiler warnings:
 52                       struct sockaddr __user * !!  38  */
 53 int put_cmsg_compat(struct msghdr*, int, int,  !!  39 #define compat_msghdr   msghdr
 54                                                !!  40 #define compat_mmsghdr  mmsghdr
 55 int cmsghdr_from_user_compat_to_kern(struct ms !!  41 #endif /* defined(CONFIG_COMPAT) */
 56                                      unsigned  !!  42 
 57                                                !!  43 extern int get_compat_msghdr(struct msghdr *, struct compat_msghdr __user *);
 58 struct compat_group_req {                      !!  44 extern int verify_compat_iovec(struct msghdr *, struct iovec *, struct sockaddr_storage *, int);
 59         __u32                            gr_in !!  45 extern asmlinkage long compat_sys_sendmsg(int,struct compat_msghdr __user *,unsigned int);
 60         struct __kernel_sockaddr_storage gr_gr !!  46 extern asmlinkage long compat_sys_sendmmsg(int, struct compat_mmsghdr __user *,
 61                 __aligned(4);                  !!  47                                            unsigned int, unsigned int);
 62 } __packed;                                    !!  48 extern asmlinkage long compat_sys_recvmsg(int,struct compat_msghdr __user *,unsigned int);
 63                                                !!  49 extern asmlinkage long compat_sys_recvmmsg(int, struct compat_mmsghdr __user *,
 64 struct compat_group_source_req {               !!  50                                            unsigned int, unsigned int,
 65         __u32                            gsr_i !!  51                                            struct compat_timespec __user *);
 66         struct __kernel_sockaddr_storage gsr_g !!  52 extern asmlinkage long compat_sys_getsockopt(int, int, int, char __user *, int __user *);
 67                 __aligned(4);                  !!  53 extern int put_cmsg_compat(struct msghdr*, int, int, int, void *);
 68         struct __kernel_sockaddr_storage gsr_s !!  54 
 69                 __aligned(4);                  !!  55 extern int cmsghdr_from_user_compat_to_kern(struct msghdr *, struct sock *, unsigned char *, int);
 70 } __packed;                                    !!  56 
 71                                                !!  57 extern int compat_mc_setsockopt(struct sock *, int, int, char __user *, unsigned int,
 72 struct compat_group_filter {                   !!  58         int (*)(struct sock *, int, int, char __user *, unsigned int));
 73         union {                                !!  59 extern int compat_mc_getsockopt(struct sock *, int, int, char __user *,
 74                 struct {                       !!  60         int __user *, int (*)(struct sock *, int, int, char __user *,
 75                         __u32                  !!  61                                 int __user *));
 76                         struct __kernel_sockad << 
 77                                 __aligned(4);  << 
 78                         __u32                  << 
 79                         __u32                  << 
 80                         struct __kernel_sockad << 
 81                                 __aligned(4);  << 
 82                 } __packed;                    << 
 83                 struct {                       << 
 84                         __u32                  << 
 85                         struct __kernel_sockad << 
 86                                 __aligned(4);  << 
 87                         __u32                  << 
 88                         __u32                  << 
 89                         struct __kernel_sockad << 
 90                                 __aligned(4);  << 
 91                 } __packed;                    << 
 92         };                                     << 
 93 } __packed;                                    << 
 94                                                    62 
 95 #endif /* NET_COMPAT_H */                          63 #endif /* NET_COMPAT_H */
 96                                                    64 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php