From: Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
To: drepper@cygnus.com (Ulrich Drepper)
Cc: libc-alpha@sources.redhat.com, linuxppc-dev@lists.linuxppc.org
Subject: Re: [RFC] IPC64 with glibc-2.2 and linux-2.4
Date: Mon, 25 Sep 2000 17:54:26 +0200 [thread overview]
Message-ID: <5.0.0.19.2.20000925173113.02e31040@mail.lauterbach.com> (raw)
In-Reply-To: <m366nko5ml.fsf@otr.mynet.cygnus.com>
At 17:25 25.09.00, Ulrich Drepper wrote:
>Franz Sirl <Franz.Sirl-kernel@lauterbach.com> writes:
>
> > What about 'seq'? Can I safely bump it to 32bit for userspace in the final
> > patch? I see no need for the kernel and userspace being different here, but
> > all other archs are limiting it to 16bit, so there may be a reason...
>
>You should avoid changing the size of the struct. I haven't done the
>math on this.
Well, changing compared to what? IPC_64 on PPC was never functional so far,
so there is no problem here. The IPC_64 structs on the other archs have
this, eg on sparc:
struct ipc64_perm
{
__kernel_key_t key;
__kernel_uid32_t uid;
__kernel_gid32_t gid;
__kernel_uid32_t cuid;
__kernel_gid32_t cgid;
unsigned short __pad1;
__kernel_mode_t mode;
unsigned short __pad2;
unsigned short seq;
unsigned long long __unused1;
unsigned long long __unused2;
};
but internally the kernel uses:
/* used by in-kernel data structures */
struct kern_ipc_perm
{
key_t key;
uid_t uid;
gid_t gid;
uid_t cuid;
gid_t cgid;
mode_t mode;
unsigned long seq;
};
So, is there a reason why seq is limited to 16bit in the
kern_ipc_perm<->ipc64_perm interface in the kernel? ipc64_perm is prepared
for a 32bit value anyway with the __pad2 padding. Since I for myself can't
think of a valid reason for limiting seq to 16bit in userspace, I'm asking
here, cause I have not the slightest idea how the IPC is handled/used
outside of kernel/glibc. If there is no reason, I really would prefer to
change my patch to use 'unsigned long seq' on PPC.
Franz.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2000-09-25 15:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Franz Sirl's message of "Mon, 25 Sep 2000 11:10:45 +0200">
[not found] ` <Franz Sirl's message of "Sun, 24 Sep 2000 21:50:44 +0200">
2000-09-24 19:50 ` [RFC] IPC64 with glibc-2.2 and linux-2.4 Franz Sirl
2000-09-25 6:51 ` Ulrich Drepper
2000-09-25 9:10 ` Franz Sirl
2000-09-25 15:25 ` Ulrich Drepper
2000-09-25 15:54 ` Franz Sirl [this message]
2000-09-25 16:08 ` Ulrich Drepper
2000-09-25 21:24 ` Geoff Keating
2000-09-26 21:24 ` Franz Sirl
2000-09-27 0:45 ` Geoff Keating
2000-09-26 2:38 Jack Howarth
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=5.0.0.19.2.20000925173113.02e31040@mail.lauterbach.com \
--to=franz.sirl-kernel@lauterbach.com \
--cc=drepper@cygnus.com \
--cc=libc-alpha@sources.redhat.com \
--cc=linuxppc-dev@lists.linuxppc.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).