Function report |
Source Code:mm\slub.c |
Create Date:2022-07-28 15:48:49 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Note that interrupts must be enabled when calling this function.
Proto:int kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t size, void **p)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct kmem_cache * | s | |
| gfp_t | flags | |
| size_t | size | |
| void ** | p |
| 3143 | s = slab_pre_alloc_hook(s, flags) |
| 3144 | If Value for the false possibility is greater at compile time(!s) Then Return false |
| 3151 | local_irq_disable() |
| 3152 | c = this_cpu_ptr(cpu_slab) |
| 3157 | If Value for the false possibility is greater at compile time(!object) Then |
| 3164 | If Value for the false possibility is greater at compile time(!p[i]) Then Go to error |
| 3167 | c = this_cpu_ptr(cpu_slab) |
| 3170 | Continue |
| 3188 | slab_post_alloc_hook(s, flags, size, p) |
| 3189 | Return i |
| 3190 | error : |
| 3192 | slab_post_alloc_hook(s, flags, i, p) |
| 3193 | __kmem_cache_free_bulk(s, i, p) |
| 3194 | Return 0 |
| Name | Describe |
|---|---|
| do_kmem_cache_size_bulk |
| 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 |