Skip to contentSkip to conversation

sys32_sched_getaffinity

DISCUSSION Pavel Kiryukhin 2 participants 2 messages Jan 19, 2004 – Jan 20, 2004 MIPS

lore
Share & tools
lore
#0 lore raw

Hi,

could anybody give some comments on the following code in 2.4.x - 2.6.1.

sys_sched_getaffinity [kernel/sched.c] on success returns the size of cpumask_t, which is obviously positive value.

while

sys32_sched_getaffinity [arch/mips/kernel/linux32.c] expect 0 as successful return from sys_sched_getaffinity.

Would
if (ret > 0) {
be more correct than
if (ret == 0) {
in sys32_sched_getaffinity?

Signature · 2 lines
Best regards,
 Pavel Kiryukhin                          mailto:[email protected]
#1 lore raw
Quoted 10 lines · Pavel Kiryukhin

could anybody give some comments on the following code in 2.4.x - 2.6.1.

sys_sched_getaffinity [kernel/sched.c] on success returns the size of cpumask_t, which is obviously positive value.

while

sys32_sched_getaffinity [arch/mips/kernel/linux32.c] expect 0 as successful return from sys_sched_getaffinity.

Wrong question. The question should be why does the MIPS kernel not use the generic 32-bit compatibility functions? It now does, I just changed that.

Ralf