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

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/msg.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ 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.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/uapi/linux/msg.h (Version linux-6.12-rc7) and /include/uapi/linux/msg.h (Version policy-sample)


  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux      1 
  2 #ifndef _UAPI_LINUX_MSG_H                         
  3 #define _UAPI_LINUX_MSG_H                         
  4                                                   
  5 #include <linux/ipc.h>                            
  6                                                   
  7 /* ipcs ctl commands */                           
  8 #define MSG_STAT 11                               
  9 #define MSG_INFO 12                               
 10 #define MSG_STAT_ANY 13                           
 11                                                   
 12 /* msgrcv options */                              
 13 #define MSG_NOERROR     010000  /* no error if    
 14 #define MSG_EXCEPT      020000  /* recv any ms    
 15 #define MSG_COPY        040000  /* copy (not r    
 16                                                   
 17 /* Obsolete, used only for backwards compatibi    
 18 struct msqid_ds {                                 
 19         struct ipc_perm msg_perm;                 
 20         struct msg *msg_first;          /* fir    
 21         struct msg *msg_last;           /* las    
 22         __kernel_old_time_t msg_stime;  /* las    
 23         __kernel_old_time_t msg_rtime;  /* las    
 24         __kernel_old_time_t msg_ctime;  /* las    
 25         unsigned long  msg_lcbytes;     /* Reu    
 26         unsigned long  msg_lqbytes;     /* dit    
 27         unsigned short msg_cbytes;      /* cur    
 28         unsigned short msg_qnum;        /* num    
 29         unsigned short msg_qbytes;      /* max    
 30         __kernel_ipc_pid_t msg_lspid;   /* pid    
 31         __kernel_ipc_pid_t msg_lrpid;   /* las    
 32 };                                                
 33                                                   
 34 /* Include the definition of msqid64_ds */        
 35 #include <asm/msgbuf.h>                           
 36                                                   
 37 /* message buffer for msgsnd and msgrcv calls     
 38 struct msgbuf {                                   
 39         __kernel_long_t mtype;          /* typ    
 40         char mtext[1];                  /* mes    
 41 };                                                
 42                                                   
 43 /* buffer for msgctl calls IPC_INFO, MSG_INFO     
 44 struct msginfo {                                  
 45         int msgpool;                              
 46         int msgmap;                               
 47         int msgmax;                               
 48         int msgmnb;                               
 49         int msgmni;                               
 50         int msgssz;                               
 51         int msgtql;                               
 52         unsigned short  msgseg;                   
 53 };                                                
 54                                                   
 55 /*                                                
 56  * MSGMNI, MSGMAX and MSGMNB are default value    
 57  * modified by sysctl.                            
 58  *                                                
 59  * MSGMNI is the upper limit for the number of    
 60  * namespace.                                     
 61  * It has been chosen to be as large possible     
 62  * scenarios where userspace causes overflows     
 63  * operations of the form retrieve current lim    
 64  *                                                
 65  * MSGMNB is the default size of a new message    
 66  * decrease the size with msgctl(IPC_SET), roo    
 67  * (actually: CAP_SYS_RESOURCE) can both incre    
 68  * size. The optimal value is application depe    
 69  * 16384 is used because it was always used (s    
 70  *                                                
 71  * MAXMAX is the maximum size of an individual    
 72  * (per-namespace) limit that applies for all     
 73  * It's set to 1/2 of MSGMNB, to ensure that a    
 74  * the queue. This is also an arbitrary choice    
 75  */                                               
 76                                                   
 77 #define MSGMNI 32000   /* <= IPCMNI */     /*     
 78 #define MSGMAX  8192   /* <= INT_MAX */   /* m    
 79 #define MSGMNB 16384   /* <= INT_MAX */   /* d    
 80                                                   
 81 /* unused */                                      
 82 #define MSGPOOL (MSGMNI * MSGMNB / 1024) /* si    
 83 #define MSGTQL  MSGMNB            /* number of    
 84 #define MSGMAP  MSGMNB            /* number of    
 85 #define MSGSSZ  16                /* message s    
 86 #define __MSGSEG ((MSGPOOL * 1024) / MSGSSZ) /    
 87 #define MSGSEG (__MSGSEG <= 0xffff ? __MSGSEG     
 88                                                   
 89                                                   
 90 #endif /* _UAPI_LINUX_MSG_H */                    
 91                                                   

~ [ 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