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.c60 size_t seg_length; member
156 munmap(segp->seg_start, segp->seg_length); in unmap_segment()
267 …memp = (char *)mmap(0, segp->seg_length, segp->seg_prot, flags | MAP_ANONYMOUS, 0, /* fd -- ignore… in map_anon_segment()
279 memp, memp + segp->seg_length - 1); in map_anon_segment()
394 if (segp->seg_length == 0) in map_file_segment()
395 segp->seg_length = round_up_to_pagesize(size) - in map_file_segment()
398 segp->seg_length = round_up_to_pagesize(segp->seg_length); in map_file_segment()
400 memp = (char *)mmap(0, segp->seg_length, in map_file_segment()
412 memp, memp + segp->seg_length - 1); in map_file_segment()
428 shmid = shmget(IPC_PRIVATE, segp->seg_length, SHM_R | SHM_W); in get_shm_segment()
[all …]