[vdr] consistent device removal

2009-01-26 Thread Deti Fliegl
Hi, sometimes it is very useful to create and destroy cDevice based classes at runtime. Currently it is only possible to create such classes at any time but destroying causes inconsistency in the 'devices' array which leads to segmentation faults in various places. The patch attached keeps

Re: [vdr] consistent device removal

2009-01-26 Thread Deti Fliegl
uups: change the 'break' by 'return' otherwise you'll get a wrong error message ;-) Deti ___ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr

Re: [vdr] consistent device removal

2009-01-26 Thread Udo Richter
On 26.01.2009 22:25, Deti Fliegl wrote: sometimes it is very useful to create and destroy cDevice based classes at runtime. Currently it is only possible to create such classes at any time but destroying causes inconsistency in the 'devices' array which leads to segmentation faults in various

Re: [vdr] consistent device removal

2009-01-26 Thread Deti Fliegl
Udo Richter wrote: Definitely something that is worth considering. The patch also brings us one step closer towards hotplug support, a feature that seems very obvious in times of USB DVB devices. Yep you are right but IMHO there would be some more work to do: VDR should compile also without

Re: [vdr] consistent device removal

2009-01-26 Thread Klaus Schmidinger
On 26.01.2009 23:01, Deti Fliegl wrote: Udo Richter wrote: Definitely something that is worth considering. The patch also brings us one step closer towards hotplug support, a feature that seems very obvious in times of USB DVB devices. Yep you are right but IMHO there would be some more