patch-2.3.25 linux/include/linux/shm.h
Next file: linux/include/linux/swap.h
Previous file: linux/include/linux/serialP.h
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Fri Oct 29 15:07:16 1999
- Orig file:
v2.3.24/linux/include/linux/shm.h
- Orig date:
Fri Oct 22 13:21:55 1999
diff -u --recursive --new-file v2.3.24/linux/include/linux/shm.h linux/include/linux/shm.h
@@ -7,7 +7,7 @@
struct shmid_ds {
struct ipc_perm shm_perm; /* operation perms */
- int shm_segsz; /* size of segment (bytes) */
+ size_t shm_segsz; /* size of segment (bytes) */
__kernel_time_t shm_atime; /* last attach time */
__kernel_time_t shm_dtime; /* last detach time */
__kernel_time_t shm_ctime; /* last change time */
@@ -46,7 +46,7 @@
#define SHM_INFO 14
struct shminfo {
- int shmmax;
+ size_t shmmax;
int shmmin;
int shmmni;
int shmseg;
@@ -68,11 +68,11 @@
#define SHM_DEST 01000 /* segment will be destroyed on last detach */
#define SHM_LOCKED 02000 /* segment will not be swapped */
-asmlinkage long sys_shmget (key_t key, int size, int flag);
+asmlinkage long sys_shmget (key_t key, size_t size, int flag);
asmlinkage long sys_shmat (int shmid, char *shmaddr, int shmflg, unsigned long *addr);
asmlinkage long sys_shmdt (char *shmaddr);
asmlinkage long sys_shmctl (int shmid, int cmd, struct shmid_ds *buf);
-extern void shm_unuse(pte_t entry, struct page *page);
+extern void shm_unuse(swp_entry_t entry, struct page *page);
#endif /* __KERNEL__ */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)