[PATCH] unload input modules when they are no longer used

Michal Suchanek hramrach at gmail.com
Fri Jun 8 07:19:17 PDT 2012


Hello,

sending the patch witch should fix issue with unloading sibling
modules along with a couple of patches that allow actually unloading
modules.

I can unload a wacom module when wacom tablet is unplugged.

Tested on X 1.12 as master requires some libraries I don't have to build.

The part with moving around the input global array is not really
tested because the unloaded driver was the last anyway.

There are changes which might break ABI but perhaps they would not.

The ModuleDesc size changes but that is allocated by loader anyway.

The DeleteInputModule interface changes but there are no users. AFAIK
this patch introduces the first.

Thanks

Michal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-xfree86-loader-Do-not-unload-sibling-modules.patch
Type: application/octet-stream
Size: 1293 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20120608/20447f76/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-xfree86-loader-add-back-silly-referece-counting.-ABI.patch
Type: application/octet-stream
Size: 2585 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20120608/20447f76/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-xfree86-unload-unused-input-drivers.patch
Type: application/octet-stream
Size: 3140 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20120608/20447f76/attachment-0002.obj>


More information about the xorg-devel mailing list