Function report |
Source Code:mm\slub.c |
Create Date:2022-07-28 15:47:43 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Remove slab from the partial list, freeze it and* return the pointer to the freelist.* Returns a list of objects or NULL if it fails.
Proto:static inline void *acquire_slab(struct kmem_cache *s, struct kmem_cache_node *n, struct page *page, int mode, int *objects)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct kmem_cache * | s | |
| struct kmem_cache_node * | n | |
| struct page * | page | |
| int | mode | |
| int * | objects |
| 1798 | lockdep_assert_held( & list_lock) |
| 1805 | freelist = first free object |
| 1809 | If mode Then |
| 1811 | first free object = NULL |
| 1812 | Else |
| 1813 | first free object = freelist |
| 1817 | frozen = 1 |
| 1819 | If Not Interrupts must be disabled (for the fallback code to work right) Then Return NULL |
| 1825 | remove_partial(n, page) |
| 1827 | Return freelist |
| Name | Describe |
|---|---|
| get_partial_node | Try to allocate a partial slab from a specific node. |
| 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 |