Searched refs:shm_info (Results 1 – 6 of 6) sorted by relevance
/openbmc/qemu/bsd-user/ |
H A D | bsd-mem.h | 353 struct shmid_ds shm_info; in do_bsd_shmat() local 356 ret = get_errno(shmctl(shmid, IPC_STAT, &shm_info)); in do_bsd_shmat() 362 if (!guest_range_valid_untagged(shmaddr, shm_info.shm_segsz)) { in do_bsd_shmat() 374 mmap_start = mmap_find_vma(0, shm_info.shm_segsz); in do_bsd_shmat() 388 page_set_flags(raddr, raddr + shm_info.shm_segsz - 1, in do_bsd_shmat() 395 bsd_shm_regions[i].size = shm_info.shm_segsz; in do_bsd_shmat()
|
/openbmc/linux/ipc/ |
H A D | shm.c | 1066 struct shm_info *shm_info) in shmctl_shm_info() argument 1070 memset(shm_info, 0, sizeof(*shm_info)); in shmctl_shm_info() 1072 shm_info->used_ids = shm_ids(ns).in_use; in shmctl_shm_info() 1073 shm_get_stat(ns, &shm_info->shm_rss, &shm_info->shm_swp); in shmctl_shm_info() 1074 shm_info->shm_tot = ns->shm_tot; in shmctl_shm_info() 1075 shm_info->swap_attempts = 0; in shmctl_shm_info() 1076 shm_info->swap_successes = 0; in shmctl_shm_info() 1267 struct shm_info shm_info; in ksys_shmctl() local 1268 err = shmctl_shm_info(ns, &shm_info); in ksys_shmctl() 1271 if (copy_to_user(buf, &shm_info, sizeof(shm_info))) in ksys_shmctl() [all …]
|
/openbmc/linux/include/uapi/linux/ |
H A D | shm.h | 101 struct shm_info { struct
|
/openbmc/qemu/linux-user/ |
H A D | mmap.c | 1294 struct shmid_ds shm_info; in target_shmat() local 1349 ret = get_errno(shmctl(shmid, IPC_STAT, &shm_info)); in target_shmat() 1354 t_len = TARGET_PAGE_ALIGN(shm_info.shm_segsz); in target_shmat() 1355 h_len = ROUND_UP(shm_info.shm_segsz, h_pagesize); in target_shmat()
|
H A D | syscall.c | 4447 struct shm_info *host_shm_info) in host_to_target_shm_info() 4466 struct shm_info shm_info; in do_shmctl() local 4487 ret = get_errno(shmctl(shmid, cmd, (struct shmid_ds *)&shm_info)); in do_shmctl() 4488 if (host_to_target_shm_info(buf, &shm_info)) in do_shmctl()
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | thuge-gen.c | 156 struct shm_info i; in test_shmget()
|