Home
last modified time | relevance | path

Searched refs:shm_info (Results 1 – 3 of 3) sorted by relevance

/DragonOS/user/apps/test_shm/
H A Dtest_info.c84 struct shm_info shm_info; in main() local
85 if (shmctl(shmid, SHM_INFO, &shm_info) == -1) in main()
90 printf("__used_ids: %lu\n", shm_info.__used_ids); in main()
91 printf("shm_tot: %lu\n", shm_info.shm_tot); in main()
92 printf("shm_rss: %lu\n", shm_info.shm_rss); in main()
93 printf("shm_swp: %lu\n", shm_info.shm_swp); in main()
94 printf("__swap_attempts: %lu\n", shm_info.__swap_attempts); in main()
95 printf("__swap_successes: %lu\n", shm_info.__swap_successes); in main()
/DragonOS/kernel/src/ipc/
H A Dshm.rs226 pub fn shm_info(&self, user_buf: *const u8, from_user: bool) -> Result<usize, SystemError> { in shm_info() method
235 let shm_info = PosixShmInfo::new(used_ids, shm_tot, 0, 0, 0, 0); in shm_info() localVariable
242 user_buffer_writer.copy_one_to_user(&shm_info, 0)?; in shm_info()
H A Dsyscall.rs490 ShmCtlCmd::ShmInfo => shm_manager_guard.shm_info(user_buf, from_user), in shmctl()