From: Hannes Reinecke <hare@suse.de>
To: Greg KH <greg@kroah.com>
Cc: dtor_core@ameritech.net,
Linux Kernel <linux-kernel@vger.kernel.org>,
Vojtech Pavlik <vojtech@suse.cz>
Subject: Re: [PATCH] remove input_call_hotplug (Take#2)
Date: Thu, 20 Jan 2005 08:55:57 +0100 [thread overview]
Message-ID: <41EF640D.60102@suse.de> (raw)
In-Reply-To: <20050119214249.GC4151@kroah.com>
Greg KH wrote:
> On Wed, Jan 19, 2005 at 02:48:14PM +0100, Hannes Reinecke wrote:
>
>>Hi Dmitry,
>>
>>attached is the reworked patch for removing the call to
>>call_usermodehelper from input.c
>>I've used the 'phys' attribute to generate the device names, this way we
>>don't need to touch all drivers and the patch itself is nice and small.
>
>
> The main problem of this is the input_dev structures are created
> statically, right? Because of this, the release function really doesn't
> work out correctly I think....
>
That depends on the driver. input_dev is in general a static entry in
the driver-dependend structure, which in turn may be statically or
dynamically allocated (depending on whether the driver allows for more
than one instance of the device to be connected).
Would dynamic allocation be of any help here?
I must admit that reference counting in sysfs is still a somewhat
darkish grey box to me.
> Other than that this looks a lot better.
>
kewl.
> Hm, you're still generating hotplug events with this patch of the
> "input_device" type, right?
>
Of course. I didn't see another way, as already stated the originial
input events were something of a misnomer.
So either I had to change the existing sysfs layout by renaming the
current 'input' class and retain compability with the events
or change the event types and retain compability with the sysfs layout.
I opted for the latter, as AFAIK more userland tools might be reading
from sysfs than processing hotplug events.
Cheers,
Hannes
--
Dr. Hannes Reinecke hare@suse.de
SuSE Linux AG S390 & zSeries
Maxfeldstraße 5 +49 911 74053 688
90409 Nürnberg http://www.suse.de
next prev parent reply other threads:[~2005-01-20 7:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-19 13:48 [PATCH] remove input_call_hotplug (Take#2) Hannes Reinecke
2005-01-19 21:42 ` Greg KH
2005-01-20 7:55 ` Hannes Reinecke [this message]
2005-01-20 13:50 ` Dmitry Torokhov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41EF640D.60102@suse.de \
--to=hare@suse.de \
--cc=dtor_core@ameritech.net \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=vojtech@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox