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

Reply via email to