Re: Stop the Linux kernel madness

From: Petr Vandrovec
Date: Fri Jun 18 2004 - 09:05:25 EST


On Fri, Jun 18, 2004 at 03:47:32PM +0200, Olaf Hering wrote:
> On Fri, Jun 18, Petr Vandrovec wrote:
>
> > On Fri, Jun 18, 2004 at 03:20:48AM +0200, Roman Zippel wrote:
> > > On Thu, 17 Jun 2004, 4Front Technologies wrote:
> > >
> > > > It's time everybody started to pay some attention to in-kernel interfaces because
> > > > Linux has graduated out of your personal sandbox to where other people want to use
> > > > Linux and they aren't kernel developers.
> > >
> > > Look into your own diapers, learn the meaning of "documented interfaces"
> > > and come back if you can show that SuSE broke exactly this.
> >
> > If renaming /proc/bus/usb/devices to
> > /proc/bus/usb/devices_please-use-sysfs-instead is not breaking of
> > "documented interface" then I have no idea what "documented interface"
> > is...
>
> I would not call this file an interface, but utter bullshit. Just
> because it breaks all these bullshit devices...

Yep. I'm not interested in the file contents, but in behavior of poll
on that file (which fires when device is plugged or unplugged).

Only thing which is at least simillar is dnotify on
/sys/bus/usb/devices, but as dnotify needs (preferrably RT) signal, it
is not trivial to use it from libraries due to problems with allocating
unused RT signal (and then you need some pipe to deliver notifications
from signal handler to "safe" process context).

Or do I miss some nice and simple interface which can be used for
notifications about newly plugged (USB) devices?
Thanks,
Petr Vandrovec

-
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/