How can a loadable kernel module remove itself?

From: Alan Stern
Date: Tue Nov 18 2003 - 10:47:58 EST


Say I've got a kernel module that decides its job is done, and it wants to
unload itself automatically. Is there any way to do that? Basically I'm
looking for the opposite of the request_module() function, except that
I've already got a pointer to the module in question, i.e., THIS_MODULE.

Thanks,

Alan Stern



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/