Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/hotplug/memory_hotplug/
Dsegment.c57 size_t seg_length; member
153 munmap(segp->seg_start, segp->seg_length); in unmap_segment()
264 …memp = (char *)mmap(0, segp->seg_length, segp->seg_prot, flags | MAP_ANONYMOUS, 0, /* fd -- ignore… in map_anon_segment()
276 memp, memp + segp->seg_length - 1); in map_anon_segment()
391 if (segp->seg_length == 0) in map_file_segment()
392 segp->seg_length = round_up_to_pagesize(size) - in map_file_segment()
395 segp->seg_length = round_up_to_pagesize(segp->seg_length); in map_file_segment()
397 memp = (char *)mmap(0, segp->seg_length, in map_file_segment()
409 memp, memp + segp->seg_length - 1); in map_file_segment()
425 shmid = shmget(IPC_PRIVATE, segp->seg_length, SHM_R | SHM_W); in get_shm_segment()
[all …]