From: Andrew Morton <akpm@osdl.org>
To: minyard@acm.org
Cc: Linux Kernel <linux-kernel@vger.kernel.org>,
David Barksdale <amatus@ocgnet.org>
Subject: Re: [PATCH] IPMI: per-channel command registration
Date: Tue, 26 Sep 2006 17:37:11 -0700 [thread overview]
Message-ID: <20060926173711.ea3c877e.akpm@osdl.org> (raw)
In-Reply-To: <20060925140941.GA6364@localdomain>
On Mon, 25 Sep 2006 09:09:41 -0500
Corey Minyard <minyard@acm.org> wrote:
>
> This patch adds the ability to register for a command per-channel in
> the IPMI driver.
>
> If your BMC supports multiple channels, incoming messages can be
> differentiated by the channel on which they arrived. In this case it's
> useful to have the ability to register to receive commands on a
> specific channel instead the current behaviour of all channels.
>
> + case IPMICTL_REGISTER_FOR_CMD_CHANS:
> + {
> + struct ipmi_cmdspec_chans val;
> +
> + if (copy_from_user(&val, arg, sizeof(val))) {
It becomes part of the ABI.
> +/*
> + * Register to get commands from other entities on specific channels.
> + * This way, you can only listen on specific channels, or have messages
> + * from some channels go to one place and other channels to someplace
> + * else. The chans field is a bitmask, (1 << channel) for each channel.
> + * It may be IPMI_CHAN_ALL for all channels.
> + */
> +struct ipmi_cmdspec_chans
> +{
> + unsigned char netfn;
> + unsigned char cmd;
> + unsigned int chans;
> +};
Has it been tested with 32-bit userspace and a 64-bit kernel?
Even if it has, I'd be a bit worried that it depends upon the user's
compiler laying this structure out in the same manner as did his
kernel-provider's compiler.
Turning this into three u32's sounds safer?
next prev parent reply other threads:[~2006-09-27 0:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-25 14:09 [PATCH] IPMI: per-channel command registration Corey Minyard
2006-09-27 0:37 ` Andrew Morton [this message]
2006-09-27 2:25 ` Corey Minyard
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=20060926173711.ea3c877e.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=amatus@ocgnet.org \
--cc=linux-kernel@vger.kernel.org \
--cc=minyard@acm.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