Searched refs:seg_length (Results 1 – 1 of 1) sorted by relevance
/external/ltp/testcases/kernel/hotplug/memory_hotplug/ |
D | segment.c | 55 size_t seg_length; member 151 munmap(segp->seg_start, segp->seg_length); in unmap_segment() 262 …memp = (char *)mmap(0, segp->seg_length, segp->seg_prot, flags | MAP_ANONYMOUS, 0, /* fd -- ignore… in map_anon_segment() 274 memp, memp + segp->seg_length - 1); in map_anon_segment() 389 if (segp->seg_length == 0) in map_file_segment() 390 segp->seg_length = round_up_to_pagesize(size) - in map_file_segment() 393 segp->seg_length = round_up_to_pagesize(segp->seg_length); in map_file_segment() 395 memp = (char *)mmap(0, segp->seg_length, in map_file_segment() 407 memp, memp + segp->seg_length - 1); in map_file_segment() 423 shmid = shmget(IPC_PRIVATE, segp->seg_length, SHM_R | SHM_W); in get_shm_segment() [all …]
|