[PATCH] linux get affinity syscall
Roman Divacky
rdivacky at freebsd.org
Wed Mar 5 19:33:51 UTC 2008
> >>>> if (args->len < sizeof(cpumask_t))
> >>>> return (EINVAL);
>
> This should not be necessary anymore.
>
> >>>
> >>>Len here is in number of bits I believe as it is for our cpusetsize.
> >>
> >>no.. its specified in bytes
> >
> >You are right. So it is with fdsets. Please hold on and I'll change
> >cpuset to be bytes as well.
> >
> >>
> >>>>
> >>>> cga.level = CPU_LEVEL_WHICH;
> >>>> cga.which = CPU_WHICH_PID;
> >>>> cga.id = args->pid;
> >>>> cga.cpusetsize = sizeof(cpumask_t) * NBBY;
> >>>> cga.mask = (long *) args->user_mask_ptr;
> >>>
>
> I checked in a change to make our cpusetsize compatible. You should only
> have to supply CPU_LEVEL_WHICH and CPU_WHICH_PID now. The rest of the
> arguments are compatible.
is it possible to make cpuset_setproc non-static?
if so could you please review the following patch:
www.vlakno.cz/~rdivacky/linux_affinity.patch
and tell me if its ok? (it lacks #include of something that should
contain the prototype for cpuset_setproc())
thnx, roman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-emulation/attachments/20080305/e9696e82/attachment.pgp
More information about the freebsd-emulation
mailing list