Home
last modified time | relevance | path

Searched refs:shmid (Results 1 – 6 of 6) sorted by relevance

/linux-2.6.39/Documentation/vm/
Dhugepage-shm.c56 int shmid; in main() local
60 if ((shmid = shmget(2, LENGTH, in main()
65 printf("shmid: 0x%x\n", shmid); in main()
67 shmaddr = shmat(shmid, ADDR, SHMAT_FLAGS); in main()
70 shmctl(shmid, IPC_RMID, NULL); in main()
91 shmctl(shmid, IPC_RMID, NULL); in main()
95 shmctl(shmid, IPC_RMID, NULL); in main()
/linux-2.6.39/arch/xtensa/kernel/
Dsyscall.c42 asmlinkage long xtensa_shmat(int shmid, char __user *shmaddr, int shmflg) in xtensa_shmat() argument
47 err = do_shmat(shmid, shmaddr, shmflg, &ret); in xtensa_shmat()
/linux-2.6.39/ipc/
Dshm.c613 static int shmctl_down(struct ipc_namespace *ns, int shmid, int cmd, in shmctl_down() argument
626 ipcp = ipcctl_pre_down(ns, &shm_ids(ns), shmid, cmd, in shmctl_down()
654 SYSCALL_DEFINE3(shmctl, int, shmid, int, cmd, struct shmid_ds __user *, buf) in SYSCALL_DEFINE3() argument
660 if (cmd < 0 || shmid < 0) { in SYSCALL_DEFINE3()
726 shp = shm_lock(ns, shmid); in SYSCALL_DEFINE3()
733 shp = shm_lock_check(ns, shmid); in SYSCALL_DEFINE3()
769 shp = shm_lock_check(ns, shmid); in SYSCALL_DEFINE3()
810 err = shmctl_down(ns, shmid, cmd, buf, version); in SYSCALL_DEFINE3()
829 long do_shmat(int shmid, char __user *shmaddr, int shmflg, ulong *raddr) in do_shmat() argument
846 if (shmid < 0) in do_shmat()
[all …]
/linux-2.6.39/include/linux/
Dshm.h107 long do_shmat(int shmid, char __user *shmaddr, int shmflg, unsigned long *addr);
110 static inline long do_shmat(int shmid, char __user *shmaddr, in do_shmat() argument
Dsyscalls.h673 asmlinkage long sys_shmat(int shmid, char __user *shmaddr, int shmflg);
676 asmlinkage long sys_shmctl(int shmid, int cmd, struct shmid_ds __user *buf);
/linux-2.6.39/Documentation/ia64/
Derr_inject.txt304 int shmid;
319 shmid = shmget(key, SHM_SIZE, 0644 | IPC_CREAT);
320 if (shmid == -1) {
322 shmid = shmget(key, SHM_SIZE, 0);
323 if (shmid == -1) {
333 vbprintf("shmid=%d", shmid);
336 shmaddr = shmat(shmid, (void *)SHM_VA, 0);
352 semctl(shmid, 0, IPC_RMID);