Function report |
Source Code:mm\slub.c |
Create Date:2022-07-28 15:47:13 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:cmpxchg_double_slab
Proto:static inline bool cmpxchg_double_slab(struct kmem_cache *s, struct page *page, void *freelist_old, unsigned long counters_old, void *freelist_new, unsigned long counters_new, const char *n)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct kmem_cache * | s | |
| struct page * | page | |
| void * | freelist_old | |
| unsigned long | counters_old | |
| void * | freelist_new | |
| unsigned long | counters_new | |
| const char * | n |
| 417 | local_irq_save(flags) |
| 419 | If first free object == freelist_old && SLUB == counters_old Then |
| 427 | slab_unlock(page) |
| 428 | local_irq_restore(flags) |
| 431 | cpu_relax() |
| 438 | Return false |
| Name | Describe |
|---|---|
| __slab_free | Slow path handling. This may still be called frequently since objects* have a longer lifetime than the cpu slabs in most processing loads.* So we still attempt to reduce cache line usage. Just take the slab* lock and free the item |
| 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 |