Function report |
Source Code:lib\sbitmap.c |
Create Date:2022-07-28 07:22:42 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sbitmap_init_node
Proto:int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift, gfp_t flags, int node)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct sbitmap * | sb | |
| unsigned int | depth | |
| int | shift | |
| gfp_t | flags | |
| int | node |
| 50 | If shift < 0 Then |
| 58 | If depth >= 4 Then |
| 63 | bits_per_word = 1U << shift |
| 64 | If bits_per_word > BITS_PER_LONG Then Return -EINVAL |
| 69 | @map_nr: Number of words (cachelines) being used for the bitmap. = DIV_ROUND_UP(@depth: Number of bits used in the whole bitmap., bits_per_word) |
| 71 | If depth == 0 Then |
| 72 | @map: Allocated bitmap. = NULL |
| 73 | Return 0 |
| 76 | @map: Allocated bitmap. = kcalloc_node(@map_nr: Number of words (cachelines) being used for the bitmap., size of @map: Allocated bitmap. , flags, node) |
| 77 | If Not @map: Allocated bitmap. Then Return -ENOMEM |
| 85 | Return 0 |
| Name | Describe |
|---|---|
| sbitmap_queue_init_node | |
| kyber_init_hctx |
| 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 |