NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/58679: sched_getaffinity_np() always returns an empty set



The following reply was made to PR lib/58679; it has been noted by GNATS.

From: mlelstv%serpens.de@localhost (Michael van Elst)
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: lib/58679: sched_getaffinity_np() always returns an empty set
Date: Thu, 19 Sep 2024 14:17:51 -0000 (UTC)

 gnats-admin%NetBSD.org@localhost ("Martin Husemann via gnats") writes:
 
 >The following reply was made to PR lib/58679; it has been noted by GNATS.
 
 >From: Martin Husemann <martin%duskware.de@localhost>
 >To: gnats-bugs%netbsd.org@localhost
 >Cc: 
 >Subject: Re: lib/58679: sched_getaffinity_np() always returns an empty set
 >Date: Thu, 19 Sep 2024 14:54:24 +0200
 
 > The default affinity of a process in NetBSD is the empty set (that is:
 > no specific affinity is defined).
 > 
 > I don't think this should be considered a bug.
 > 
 > If you set some affinity, the sched_getaffinity* calls will return the mask
 > you set.
 
 
 While the behaviour of sched_getaffinity isn't well defined, that's
 not true for the pthread_getaffinity_np function.
 
 The default affinity mask there is defined as 'all ones' and an
 'all zeros' mask is invalid for setting affinity.
 


Home | Main Index | Thread Index | Old Index