Re: [PATCH] cpumask 5/10 rewrite cpumask.h - single bitmap based implementation

Andrew Morton
2004-06-04T20:29:22Z

Anton Blanchard <anton@samba.org> wrote:
>
>
> > This is patently ridiculous. Make a compat_sched_getaffinity(), and
> > likewise for whatever else is copying unsigned long arrays to userspace.
>
> Did someone say compat_sched_getaffinity?
>

aargh! It's back!

>
> --
>
> Patch from Milton Miller that adds the sched_affinity syscalls into the
> compat layer.

There's something about this patch which make me break out in hives. Does
it *really* need to be that complicated?

iirc, the last time I looked through this I was unable to convince myself
that it was endianness-correct. Is it?