patch-2.1.9 linux/include/linux/shm.h
Next file: linux/include/linux/socket.h
Previous file: linux/include/linux/sem.h
Back to the patch index
Back to the overall index
- Lines: 41
- Date:
Sun Nov 10 19:47:26 1996
- Orig file:
v2.1.8/linux/include/linux/shm.h
- Orig date:
Wed Oct 16 10:48:30 1996
diff -u --recursive --new-file v2.1.8/linux/include/linux/shm.h linux/include/linux/shm.h
@@ -33,6 +33,10 @@
#define SHM_LOCK 11
#define SHM_UNLOCK 12
+/* ipcs ctl commands */
+#define SHM_STAT 13
+#define SHM_INFO 14
+
struct shminfo {
int shmmax;
int shmmin;
@@ -41,16 +45,6 @@
int shmall;
};
-#ifdef __KERNEL__
-
-/* shm_mode upper byte flags */
-#define SHM_DEST 01000 /* segment will be destroyed on last detach */
-#define SHM_LOCKED 02000 /* segment will not be swapped */
-
-/* ipcs ctl commands */
-#define SHM_STAT 13
-#define SHM_INFO 14
-
struct shm_info {
int used_ids;
unsigned long shm_tot; /* total allocated shm */
@@ -59,6 +53,12 @@
unsigned long swap_attempts;
unsigned long swap_successes;
};
+
+#ifdef __KERNEL__
+
+/* shm_mode upper byte flags */
+#define SHM_DEST 01000 /* segment will be destroyed on last detach */
+#define SHM_LOCKED 02000 /* segment will not be swapped */
asmlinkage int sys_shmget (key_t key, int size, int flag);
asmlinkage int sys_shmat (int shmid, char *shmaddr, int shmflg, unsigned long *addr);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov