From: Kristen Accardi <kristen.c.accardi-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: "Randy.Dunlap" <rdunlap-/UHa2rfvQTnk1uMJSBkQmQ@public.gmane.org>
Cc: "Brown, Len" <len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
randy_d_dunlap-VuQAYsv1563Yd54FQh9/CA@public.gmane.org,
acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
pcihpd-discuss-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
gregkh-l3A5Bk7waGM@public.gmane.org,
robert.moore-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Subject: Re: RE: [PATCH 1/2] make acpi_path_name() global
Date: Fri, 16 Dec 2005 10:38:29 -0800 [thread overview]
Message-ID: <1134758310.7096.3.camel@whizzy> (raw)
In-Reply-To: <20051215212735.2065f4f4.rdunlap-/UHa2rfvQTnk1uMJSBkQmQ@public.gmane.org>
On Thu, 2005-12-15 at 21:27 -0800, Randy.Dunlap wrote:
> On Thu, 15 Dec 2005 23:56:47 -0500 Brown, Len wrote:
<snip>
> > an example of this is acpi_get_name(), which as declared
> > isn't supposed to be available outside the core.
> > All the uses of it to print ACPI namespace tokens in /proc
> > are totally bogus and should be deleted. The other use
> > of it is to print out debug strings -- stuff the OS
> > doesn't really need to "know" and maybe something the
> > core should do for it. That leaves the hotplug use,
> > which I don't understand. What does SATA need
> > with the actual path names?
>
> SATA uses the name string for (a) debugging, as you have
> mentioned, and (b) for comparing complete device strings
> to match/find a SATA _ADR under a device (in a device's
> scope). I can do without (a) as well as the rest of the
> kernel can, of course. I don't know how to find and match
> SATA devices (part b) without it, so this is an opportunity
> for you to educate me. :)
>
>
We use this in pciehp and shpchp as well for the same reason. One thing
I don't love about these patches is the need now to worry about freeing
memory after you make these calls. To me that seems like asking for
memory leaks in error paths at some point down the road when someone
less careful than Randy adds some code in. If there were some way to
return a pointer to a static string, I'd prefer that solution, but I
can't figure out from looking at the acpi code if that is possible. If
there's some better way to perform this compare, I'd like to hear it
too.
Kristen
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
next prev parent reply other threads:[~2005-12-16 18:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-16 4:56 [PATCH 1/2] make acpi_path_name() global Brown, Len
[not found] ` <F7DC2337C7631D4386A2DF6E8FB22B30056F8757-N2PTB0HCzHKkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2005-12-16 5:27 ` Randy.Dunlap
[not found] ` <20051215212735.2065f4f4.rdunlap-/UHa2rfvQTnk1uMJSBkQmQ@public.gmane.org>
2005-12-16 18:38 ` Kristen Accardi [this message]
2005-12-16 21:03 ` Rolf Eike Beer
2005-12-16 18:39 ` Rajesh Shah
-- strict thread matches above, loose matches on Subject: below --
2005-12-16 20:11 Moore, Robert
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=1134758310.7096.3.camel@whizzy \
--to=kristen.c.accardi-ral2jqcrhueavxtiumwx3w@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=gregkh-l3A5Bk7waGM@public.gmane.org \
--cc=len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=pcihpd-discuss-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=randy_d_dunlap-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
--cc=rdunlap-/UHa2rfvQTnk1uMJSBkQmQ@public.gmane.org \
--cc=robert.moore-ral2JQCrhuEAvxtiuMwx3w@public.gmane.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