Re: NUMA API observations

From: Manfred Spraul
Date: Tue Jun 15 2004 - 00:01:42 EST




I will probably make it loop and double the buffer until EINVAL
ends or it passes a page and add a nasty comment.

I agree that a loop is needed. And yes someone didn't do a very
good job of designing this interface.



What about fixing the interface instead? For example if user_mask_ptr NULL, then sys_sched_{get,set}affinity return the bitmap size.

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