Lines Matching refs:shm_info
961 struct shm_info *shm_info) in shmctl_shm_info() argument
965 memset(shm_info, 0, sizeof(*shm_info)); in shmctl_shm_info()
967 shm_info->used_ids = shm_ids(ns).in_use; in shmctl_shm_info()
968 shm_get_stat(ns, &shm_info->shm_rss, &shm_info->shm_swp); in shmctl_shm_info()
969 shm_info->shm_tot = ns->shm_tot; in shmctl_shm_info()
970 shm_info->swap_attempts = 0; in shmctl_shm_info()
971 shm_info->swap_successes = 0; in shmctl_shm_info()
1162 struct shm_info shm_info; in ksys_shmctl() local
1163 err = shmctl_shm_info(ns, &shm_info); in ksys_shmctl()
1166 if (copy_to_user(buf, &shm_info, sizeof(shm_info))) in ksys_shmctl()
1273 static int put_compat_shm_info(struct shm_info *ip, in put_compat_shm_info()
1357 struct shm_info shm_info; in compat_ksys_shmctl() local
1358 err = shmctl_shm_info(ns, &shm_info); in compat_ksys_shmctl()
1361 if (put_compat_shm_info(&shm_info, uptr)) in compat_ksys_shmctl()