Function report |
Source Code:include\linux\sbitmap.h |
Create Date:2022-07-28 07:22:33 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__sbitmap_for_each_set() - Iterate over each set bit in a &struct sbitmap
Proto:static inline void __sbitmap_for_each_set(struct sbitmap *sb, unsigned int start, sb_for_each_fn fn, void *data)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct sbitmap * | sb | |
unsigned int | start | |
sb_for_each_fn | fn | |
void * | data |
240 | scanned = 0 |
242 | If start >= @depth: Number of bits used in the whole bitmap. Then start = 0 |
244 | index = SB_NR_TO_INDEX(sb, start) |
245 | nr = SB_NR_TO_BIT(sb, start) |
264 | When 1 cycle |
271 | nr++ |
273 | next : |
274 | nr = 0 |
275 | If ++index >= @map_nr: Number of words (cachelines) being used for the bitmap. Then index = 0 |
Name | Describe |
---|---|
blk_mq_dequeue_from_ctx |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |