delete_module - delete a loadable module entry
#include <linux/module.h> int delete_module(const char * name);
delete_module(2) attempts to remove an unused loadable module entry. If name is NULL, all unused modules marked auto-clean will be removed. This system call is only open to the superuser.
On success, zero is returned. On error, -1 is returned and errno is set appropriately.
5 pages link to delete_module(2):