Originally Posted by zebdits
After stop of the Xorg-server, this file (/dev/nvidia0) is not using by any process.
Nevertheless, unloading the module is impossible:
$ fstat /dev/nvidia0
USER CMD PID FD MOUNT INUM MODE SZ|DV R/W NAME
$ kldunload nvidia
kldunload: can't unload file: Device busy