From: Greg KH <greg@kroah.com>
To: Robert Love <rml@ximian.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [patch] add kobject_get_path
Date: Fri, 6 Aug 2004 13:50:22 -0700 [thread overview]
Message-ID: <20040806205022.GA26135@kroah.com> (raw)
In-Reply-To: <1091824903.7939.80.camel@betsy>
On Fri, Aug 06, 2004 at 04:41:43PM -0400, Robert Love wrote:
> Greg -
>
> Hey, here is an alternative to exporting those two functions.
Ah, good timing, I was just about to apply your other patch :)
>
> This patch, in lieu, creates a new function that performs the same steps
> as in kset_hotplug() and presumably what every single user of the
> previously exported functions would do: get the length, allocate memory,
> and then build the path.
>
> So just export a single function to do it right. And use it in
> kset_hotplug(). The function is prototyped as
>
> char * kobject_get_path(struct kset *kset, struct kobject *kobj,
> int gfp_mask)
>
> I like this approach better.
I do too. One problem though, get_kobj_path_length and fill_kobj_path
are only built if CONFIG_HOTPLUG is enabled. Care to respin this patch
by moving the functions outside of that #define?
thanks,
greg k-h
next prev parent reply other threads:[~2004-08-06 20:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-06 20:26 [patch] export, rename fill_kobj_path and get_kobj_path_length Robert Love
2004-08-06 20:41 ` [patch] add kobject_get_path Robert Love
2004-08-06 20:50 ` Greg KH [this message]
2004-08-06 20:56 ` Robert Love
2004-08-06 21:07 ` Robert Love
2004-08-06 21:16 ` Greg KH
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=20040806205022.GA26135@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rml@ximian.com \
/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
Powered by JetHome