host code and kernel code