----- Original Message ----- From: "Christian Gmeiner" <[EMAIL PROTECTED]> To: "Michael Hunold" <[EMAIL PROTECTED]> Sent: Monday, May 03, 2004 1:26 AM Subject: Re: [linux-dvb] Re: Idea: support for more fs types
> Hi Michael, > > > Hello Christian, > > > > On 02.05.2004 13:12, Christian Gmeiner wrote: > > > i have currently switched to an udev only system and it runs very nice, > > > only the dvb-drivers need some > > > handworking. I would now recommend an abstract device handling for the > > > different fs types > > > (proc, devfs and udev). > > > > > > like: > > > > > > dvb_registration.h: > > > > > > extern void dvb_register_driver(void); > > > extern void dvb_register_card(...); > > > extern void dvb_unregister_card(...); > > > extern void dvb_unregister_driver(void); > > > ... > > > > > > and we write for every fs type easly routines and in the dvbcore.c we > > > are using only the abstract > > > interface. This was also done by the dxr3-driver. > > > > > > So if you accept my idea, i will wirte a patch to demonstrate this > concept. > > > > I've started to work on proper sysfs support, but I quickly realized > > that a proper sysfs representation of the dvb subsystem isn't easily > > done, because you have a whole "tree" (ie. adapters with subdevices) > > that needs to be represented properly. > Thats correct, nut i alos think its not that hard with my which to code it > abstract. > I would make it so: > > /sys > | - class > | | - media > | | | -dvb > | | | |- adapter0 > | | | | | - audio > | | | | | - frontend > | | | | | - demux > | | | | | - dvr > | | | | | - ca > | | | | | - net > | | | | | - osd > | | | |- adapter1 > | | | | | - audio > | | | | | - frontend > | | | | | - demux > | | | | | - dvr > | | | | | - ca > | | | | | - net > | | | | | - osd > | | | |... > | | | |- adapterX > | | | | | - audio > | | | | | - frontend > | | | | | - demux > | | | | | - dvr > | | | | | - ca > | | | | | - net > | | | | | - osd > > I am not sure, if the root (/sys/class/media/dvb/) is ok. > > > Another problem is that both PCI and USB devices can be registered, so > > you need to get the sysfs/udev registration right. This is were I > > stopped my attempts, because I already spend enough time to keep the > > drivers in sync with the mainline kernel. > Could you send me your work? Maybe it would help me :) > > > > > Your help is really appreciated! I'm looking forward for your patches. > Thanks. At the moment the devfs_path is ready and proc sysfs are in > development. > Procfs is finished soon. > > > > > > Greets, > > > Christian > > > > CU > > Michael. > > > Cheers, > Christian > -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe linux-dvb" as subject.
