lookup_memflags
memflags = lookup_memflags(&rstate);
int lookup_memflags(struct restore_state *rstate);