berkus / kbus

Automatically exported from code.google.com/p/kbus
Other
1 stars 0 forks source link

Non-modular kbus has no way to remove unused devices #49

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When kbus is built into the kernel, i.e. not as a module, there is (at present) 
no way to have it expire unused unloved devices. This leads to some test 
failures, which are expecting to be able to rmmod and have them go away.

We might fix this by having the RESET ioctl clean up and remove all but kbus0? 
I suppose it ought to require some sort of priviliges, e.g. current_uid()==0.

Original issue reported on code.google.com by crazys...@gmail.com on 12 Jan 2011 at 4:55

GoogleCodeExporter commented 9 years ago
We might also decide that it makes no sense to build kbus as a module, in which 
case we'd want to put "depends on m" in its Kconfig entry. However I am not 
convinced of this.

Original comment by crazys...@gmail.com on 13 Jan 2011 at 5:10

GoogleCodeExporter commented 9 years ago
This does sound like the (long awaited) sensible use for the RESET ioctl.

Clearly the tests need fixing as well, though (I'll try to have a look at them).

Original comment by t...@tibsnjoan.co.uk on 14 Jan 2011 at 10:16