The original code uses the "kernel driver detach" functionality which is required under Linux but not available under FreeBSD.