From: Dmitry Torokhov <dtor_core@ameritech.net>
To: Christoph Hellwig <hch@infradead.org>
Cc: Greg KH <greg@kroah.com>, LKML <linux-kernel@vger.kernel.org>
Subject: RE: [PARCH] driver core: add driver_find to find a driver by name
Date: Mon, 28 Jun 2004 06:37:14 -0700 (PDT) [thread overview]
Message-ID: <20040628133714.14671.qmail@web81309.mail.yahoo.com> (raw)
Christoph Hellwig wrote:
> On Sun, Jun 27, 2004 at 09:26:03PM -0500, Dmitry Torokhov wrote:
> > Hi,
> >
> > Here is a patch that adds driver_find() that allows to search for a
> driver
> > on a bus by it's name. The function is similar to device_find already
> present
> > in the tree. I need it for my serio sysfs patches where user can re-bind
> > serio port to an alternate driver by echoing driver's name to serio
> port's
> > driver attribute.
>
> It looks like it's missing some refcounting, no?
Actually I think that kset_find_obj is the one that is missing
refcounting - device/driver can easily go away on return from
this function as well, no?
Anyway, usage in serio should be fine as the whole thing is
protected by serio_sem.
--
Dmitry
next reply other threads:[~2004-06-28 13:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-28 13:37 Dmitry Torokhov [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-06-28 2:26 Dmitry Torokhov
2004-06-28 8:41 ` Christoph Hellwig
2004-07-14 23:02 ` Greg KH
2004-07-15 12:30 ` Marcelo Tosatti
2004-07-16 4:41 ` 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=20040628133714.14671.qmail@web81309.mail.yahoo.com \
--to=dtor_core@ameritech.net \
--cc=greg@kroah.com \
--cc=hch@infradead.org \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®