Introduce allocation and mapping flags

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>