Message-ID: <403258D4.5030500@earthlink.net>
Date: Tue, 17 Feb 2004 12:09:24 -0600
From: "Bryan W. Headley" <bwheadley@earthlink.net>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040122 Debian/1.6-1
X-Accept-Language: en
MIME-Version: 1.0
To: Greg KH <greg@kroah.com>
Subject: Re: Hotplug-- who notifies whom of what?
References: <40316638.9060501@earthlink.net> <20040217013905.GA3596@kroah.com> <40323486.8070803@earthlink.net> <20040217172855.GC13363@kroah.com>
In-Reply-To: <20040217172855.GC13363@kroah.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Greg KH wrote:
> On Tue, Feb 17, 2004 at 09:34:30AM -0600, Bryan W. Headley wrote:
> 
>>Greg KH wrote:
>>
>>>On Mon, Feb 16, 2004 at 06:54:16PM -0600, Bryan W. Headley wrote:
>>>
>>>
>>>>Greg,
>>>>
>>>>Regards to Aiptek USB tablets...
>>>>
>>>>I'm trying to figure out a strategy for hotplugging.
>>>>
>>>>1) The tablet is mapped to the input device system.
>>>> a) Because the order in which drivers complete loading/registering
>>>>    is not deterministic (e.g., mouse driver spawns thread), I do not
>>>>    know with certainty that the tablet will always be mapped to
>>>>    /dev/input/event27. So, configuration files of certain (XFree)
>>>>    applications that require that the path be known and static enough
>>>>    to put in a text file.
>>>
>>>
>>>Use udev to always create your "/dev/input/tablet_mine_all_mine" node so
>>>that XFree does not have to be reconfigured all the time.
>>
>>What do I do in 2.4-land? The silliness with hotplug scripts, .rc 
>>scripts, etc.?
> 
> 
> I don't really know, sorry.  Luckily I'm not running 2.4 on any of my
> machines :)
> 
> Anyone else have an idea?

The only thing I can think of is a daemon that uses the extended-ioctl 
callback function that's in Linux. E.g., notify when the file is read, 
written, removed. Not a standard unixland facility, but who cares? I'd 
be writing this for a Linux device driver!

Seriously, though: assuming udevfs is the deus ex machina for 2.6-land, 
which dists are planning to use it?

-- 
____               .:.                 ____
Bryan W. Headley - bwheadley@earthlink.net

