From: Duarte Silva <duartejcsilva@gmail.com>
To: linux-acpi@vger.kernel.org
Subject: Re: Problems evaluating WMI method
Date: Wed, 1 Oct 2008 19:22:17 +0100 [thread overview]
Message-ID: <200810011922.17152.duartejcsilva@gmail.com> (raw)
In-Reply-To: <200810011855.30154.carlos@strangeworlds.co.uk>
On Wednesday 01 October 2008 18:55:29 Carlos Corbacho wrote:
> On Tuesday 30 September 2008 23:56:09 Duarte Silva wrote:
> > wmi_evaluate_method("C3A72B38-D3EF-42D3-8CBB-D5A57049F66D", 1, 1, &in,
> > &out);
> >
> > printk( KERN_INFO "QUERY %i\n", (u32)out.length);
> >
> > kfree(out.pointer);
> >
> > I get a output with a lenght of 24 and when I convert it to a acpi_object
> > I get type integer. Result in dmesg
> >
> > QUERY 24
>
> Ok, but what's the actual result?
>
> e.g.
>
> acpi_object *obj;
>
> wmi_evaluate_method(guid, 1, 1, &in, &out);
>
> obj = (union acpi_object *) out.pointer;
>
> printk(KERN_INFO "RESULT %i\n", obj->value);
>
> -Carlos
It's of type integer and the result is allways one. But it is possible, Iam in
a 64 bits platform, so three ints are 24 bytes (8 * 3)
But the strange part is that the result is allways one, when it should be
0x0300.
next prev parent reply other threads:[~2008-10-01 18:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-30 22:56 Problems evaluating WMI method Duarte Silva
2008-10-01 17:55 ` Carlos Corbacho
2008-10-01 18:22 ` Duarte Silva [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-10-01 20:13 Duarte Silva
2008-10-01 20:26 ` Carlos Corbacho
2008-10-01 20:48 ` Duarte Silva
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=200810011922.17152.duartejcsilva@gmail.com \
--to=duartejcsilva@gmail.com \
--cc=linux-acpi@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;
as well as URLs for NNTP newsgroup(s).