Function report |
Source Code:lib\sbitmap.c |
Create Date:2022-07-28 07:22:45 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sbitmap_get
Proto:int sbitmap_get(struct sbitmap *sb, unsigned int alloc_hint, bool round_robin)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct sbitmap * | sb | |
| unsigned int | alloc_hint | |
| bool | round_robin |
| 160 | nr = -1 |
| 162 | index = SB_NR_TO_INDEX(sb, alloc_hint) |
| 169 | If round_robin Then alloc_hint = SB_NR_TO_BIT(sb, alloc_hint) |
| 171 | Else alloc_hint = 0 |
| 175 | nr = sbitmap_find_bit_in_index(sb, index, alloc_hint, round_robin) |
| 177 | If nr != -1 Then |
| 179 | Break |
| 183 | alloc_hint = 0 |
| 184 | If ++index >= @map_nr: Number of words (cachelines) being used for the bitmap. Then index = 0 |
| 188 | Return nr |
| Name | Describe |
|---|---|
| __sbitmap_queue_get |
| 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 |