lkml.org 
[lkml]   [2002]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] 2.5: task cpu affinity syscalls

> Attached is a resync to 2.5.8-pre2 of my CPU affinity syscalls for 2.5's
> scheduler.
>
> This patch implements two new syscalls:
>
> int sched_setaffinity(pid_t pid, unsigned int len,
> unsigned long *new_mask_ptr)
>
> int sched_getaffinity(pid_t pid, unsigned int *user_len_ptr,
> unsigned long *user_mask_ptr)

Since this isnt 32/64 bit compatible on big endian machines, can you
write some wrapper functions before all the archs implement it
themselves?

Think of 32 bit userspace passing a big endian bitmask into a 64 bit
kernel:

32 bit:
31-0 63-32 95-64 127-96

64 bit:
63-0 127-64

Anton
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.194 / U:0.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site