mask mode: shared mask structure for kernel and host