How to remove a module from the kernel

From Wiki-UX.info
Jump to: navigation, search

How do I completely remove a module from a system?[edit]

You cannot completely remove a module from a system by simply removing it from the /usr/conf/mod directory. First unload the module, then uninstall the module, and finally remove the module from the /usr/conf/mod directory as follows:

1. Unload the module:

# kcmodule -s <mydrivername>=unused

2. Uninstall the module:

# kcmodule -s <mydrivername>=uninstall

3. Remove the module from the /usr/conf/mod file:

# rm -f /usr/conf/mod/<mydrivername>

Reference[edit]

http://h21007.www2.hp.com/portal/download/files/unprot/ddk/FAQ11iv3.pdf