Home
last modified time | relevance | path

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

/memcached-1.6.32/
Drestart.c25 static void *mmap_base = NULL; variable
319 mmap_base = mmap(NULL, limit, PROT_READ|PROT_WRITE, MAP_SHARED, mmap_fd, 0); in restart_mmap_open()
320 if (mmap_base == MAP_FAILED) { in restart_mmap_open()
329 *mem_base = mmap_base; in restart_mmap_open()
336 msync(mmap_base, slabmem_limit, MS_SYNC); in restart_mmap_close()
342 if (munmap(mmap_base, slabmem_limit) != 0) { in restart_mmap_close()
369 item *it = (item *)((char *)mmap_base + checked); in restart_fixup()
371 int size = slabs_fixup((char *)mmap_base + checked, in restart_fixup()
387 it->next = (item *)((mc_ptr_t)it->next + (mc_ptr_t)mmap_base); in restart_fixup()
391 it->prev = (item *)((mc_ptr_t)it->prev + (mc_ptr_t)mmap_base); in restart_fixup()
[all …]
Dmemcached.c4436 void *mmap_base; member
4498 restart_set_kv(ctx, "mmap_oldbase", "%p", meta->mmap_base);
5970 meta->mmap_base = mem_base;