On Sat, Mar 31, 2001 at 07:25:48AM -0800, David Brownell wrote:
> dev_t dev; /* major/minor */
Eeek! No, don't do that! That will be going away in 2.5 :)
I've been thinking about this for a while, and I don't think that we
need to export anything else to userspace right now. If you want to do
something like this it can work today in at least 2 different ways:
- using devfs
- get the notification of a device change, which starts
the user daemon to configure the specified printer.
- watching the usb/devices file or tree for a change in a user
space program
- it sees that something has changed, it's a printer,
and now it configures it properly. A little mess with
the proper device id doing this, but it is possible
(see gnome-pilot for an example)
Personally I like the devfs method for system wide things, like
configuring printers. And the userspace program works well for things
like Visor and Palm syncing on device insertion where you don't want to
be running as root :)
thanks,
greg k-h
--
greg@(kroah|wirex).com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-devel
- [linux-usb-devel] Additional USB Hotplug Information Allen Barnett
- Re: [linux-usb-devel] Additional USB Hotplug Informa... Tim Jansen
- Re: [linux-usb-devel] Additional USB Hotplug Inf... David Brownell
- Re: [linux-usb-devel] Additional USB Hotplug Inf... Miles Lane
- Re: [linux-usb-devel] Additional USB Hotplug Informa... David Brownell
- Re: [linux-usb-devel] Additional USB Hotplug Informa... Adam J. Richter
- Re: [linux-usb-devel] Additional USB Hotplug Inf... David Paschal
- Re: [linux-usb-devel] Additional USB Hotplug Informa... Allen Barnett
- Re: [linux-usb-devel] Additional USB Hotplug Inf... David Brownell
- Re: [linux-usb-devel] Additional USB Hotplug Informa... Greg KH
- Re: [linux-usb-devel] Additional USB Hotplug Inf... David Brownell
- Re: [linux-usb-devel] Additional USB Hotplug Informa... Brad Hards
- Re: [linux-usb-devel] Additional USB Hotplug Informa... Alan Cox
- Re: [linux-usb-devel] Additional USB Hotplug Inf... Johannes Erdfelt
- Re: [linux-usb-devel] Additional USB Hotplug Informa... Allen Barnett
- Re: [linux-usb-devel] Additional USB Hotplug Inf... David Brownell
- Re: [linux-usb-devel] Additional USB Hotplug Informa... Alan Cox
- Re: [linux-usb-devel] Additional USB Hotplug Informa... Johannes Erdfelt
- Re: [linux-usb-devel] Additional USB Hotplug Informa... Alan Cox
- Re: [linux-usb-devel] Additional USB Hotplug Informa... Tim Jansen
