Messages in this thread | | | Subject | Re: [RFC PATCH v7 06/23] bitops: Introduce find_next_or_bit | From | Randy Dunlap <> | Date | Wed, 2 Sep 2020 22:13:46 -0700 |
| |
On 8/28/20 12:51 PM, Julien Desfossez wrote: > +#ifndef find_next_or_bit > +/** > + * find_next_or_bit - find the next set bit in any memory regions > + * @addr1: The first address to base the search on > + * @addr2: The second address to base the search on > + * @offset: The bitnumber to start searching at
preferably bit number
> + * @size: The bitmap size in bits > + * > + * Returns the bit number for the next set bit
* Return: the bit number for the next set bit
for kernel-doc syntax.
> + * If no bits are set, returns @size. > + */ > +extern unsigned long find_next_or_bit(const unsigned long *addr1, > + const unsigned long *addr2, unsigned long size, > + unsigned long offset); > +#endif
thanks. -- ~Randy
| |