Hi Jörn, On 05/02/2016 08:04 PM, Jörn Engel wrote: > [ Removed linux-fsdevel - shouldn't have been on Cc: ] > > On Mon, May 02, 2016 at 05:58:21PM -0700, Jörn Engel wrote: >> The manpage seems to have the wrong type for "addr". >> >> Manpage: >> int get_mempolicy(int *mode, unsigned long *nodemask, >> unsigned long maxnode, unsigned long addr, >> unsigned long flags); >> >> /usr/include/numaif.h: >> extern long get_mempolicy(int *policy, const unsigned long *nmask, >> unsigned long maxnode, void *addr, int flags); > > Found another problem. > > "is always rounded to a multiple of sizeof(unsigned long)" > > I suspect the rounding should be done to a multiple of BITS_PER_LONG, or > "sizeof(unsigned long) * 8". It looks to me like you are right, but with reports like this, it's really helpful if you provide me some context on why you drew the conclusion. That makes things much easier to check. For example, you could cite pieces of code such as the following in mm/mempolicy.c::COMPAT_SYSCALL_DEFINE5(get_mempolicy): nr_bits = min_t(unsigned long, maxnode-1, MAX_NUMNODES); alloc_size = ALIGN(nr_bits, BITS_PER_LONG) / 8; > Jörn, wondering how many others actually care about NUMA Intersection of the set of people who care about both NUMA and docs is evidently small... Thanks for taking care. Cheers, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html