kmod/core: make func->op an enum