lkml.org 
[lkml]   [2020]   [Sep]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [RFC PATCH v7 06/23] bitops: Introduce find_next_or_bit
    From
    Date
    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

    \
     
     \ /
      Last update: 2020-09-03 07:15    [W:3.259 / U:0.064 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site