Linux compatible setaffinity.

Robert Watson rwatson at FreeBSD.org
Tue Dec 25 12:10:54 PST 2007


On Wed, 19 Dec 2007, Jeff Roberson wrote:

> I have implemented a linux compatible sched_setaffinity() call which is 
> somewhat crippled.  This allows a userspace process to supply a bitmask of 
> processors which it will run on.  I have copied the linux interface such 
> that it should be api compatible because I believe it is a sensible 
> interface and they beat us to it by 3 years.

BTW, I notice that you declare sched_getaffinity() in the user include file, 
but don't reserve a system call in syscalls.master or implement it.  Is this 
intentional?

Robert N M Watson
Computer Laboratory
University of Cambridge


More information about the freebsd-arch mailing list