cmp_p2o
qsort(map, cpu_kh->nmemsegs, sizeof(*map), cmp_p2o);
val = bsearch(&key, map, cpu_kh->nmemsegs, sizeof (key), cmp_p2o);