From: Greg KH <greg@kroah.com>
To: Andrew Zabolotny <zap@homelink.ru>
Cc: linux-kernel@vger.kernel.org
Subject: Re: class_device_find()
Date: Mon, 24 May 2004 16:39:14 -0700 [thread overview]
Message-ID: <20040524233914.GI21244@kroah.com> (raw)
In-Reply-To: <20040525020803.759c5794.zap@homelink.ru>
On Tue, May 25, 2004 at 02:08:03AM +0400, Andrew Zabolotny wrote:
> Ok, apart from this discussion, what you don't like about the
> class_device_find() function? I mean your fixed implementation. The locks are
> in place, the returned object has got his reference counter increased. Or,
> alternatively, any other ideas how we can solve the problem I've described in
> my previous message?
No in-kernel code uses it. That's my main objection. If a patch is
submitted that needs it, I'll reconsider it based on that patch.
> Also one more question. Do you think if it is okay if a subclass (such
> as the lcd device class) does strcpy() directly to class_device->class_id, or
> it is worth to add a function class_dev_set_name(struct class_device *, const
> char*)?
strncpy() is fine to do at this time.
thanks,
greg k-h
prev parent reply other threads:[~2004-05-24 23:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20040523002309.2ec5965e.zap@homelink.ru>
[not found] ` <20040524051303.GC27371@kroah.com>
2004-05-24 6:39 ` class_device_find() Andrew Zabolotny
2004-05-24 16:46 ` class_device_find() Greg KH
2004-05-24 22:08 ` class_device_find() Andrew Zabolotny
2004-05-24 23:39 ` Greg KH [this message]
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=20040524233914.GI21244@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=zap@homelink.ru \
/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