Adding missing functions from old kernel [ci skip]