so that the kernel and the lkm can use it without having it in two files... plus minor fixes (idea from Rhialto).