Re: [PATCH 06/14] cpumask: re-introduce cpumask_next{,_and}_wrap()

From
Bjorn Helgaas <helgaas@kernel.org>
Date
2025-01-03 17:44:35
Also in
linux-crypto, linux-hyperv, linux-nvme, linux-pci, linux-s390, linux-scsi, linuxppc-dev, lkml, virtualization
Reply to
Yury Norov, 2024-12-28
On Sat, Dec 28, 2024 at 10:49:38AM -0800, Yury Norov wrote:
cpumask_next_wrap_old() has two additional parameters, comparing to it's
analogue in linux/find.h find_next_bit_wrap(). The reason for that is
historical.
s/it's/its/

Personally I think cscope/tags/git grep make "find_next_bit_wrap()"
enough even without mentioning "linux/find.h".
quoted hunk ↗ jump to hunk
+ * cpumask_next_and_wrap - get the next cpu in *src1p & *src2p, starting from
+ *			   @n and wrapping around, if needed
+ * @n: the cpu prior to the place to search (i.e. return will be > @n)
Is the return really > @n if it wraps?
Thread (16 messages) 16 messages, 5 authors, last reply 2025-01-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help