Re: [PATCH 01/34] lib/find: add atomic find_bit() primitives
On 11/18/23 07:50, Yury Norov wrote: Add helpers around test_and_{set,clear}_bit() that allow to search for clear or set bits and flip them atomically. Has it been considered to add kunit tests for the new functions? Thanks, Bart.
[PATCH 01/34] lib/find: add atomic find_bit() primitives
Add helpers around test_and_{set,clear}_bit() that allow to search for clear or set bits and flip them atomically. The target patterns may look like this: for (idx = 0; idx < nbits; idx++) if (test_and_clear_bit(idx, bitmap)) do_something(idx); Or