Function report |
Source Code:include\linux\slab_def.h |
Create Date:2022-07-28 14:03:52 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:We want to avoid an expensive divide : (offset / cache->size)* Using the fact that size is a constant for a particular cache,* we can replace (offset / cache->size) by* reciprocal_divide(offset, cache->reciprocal_buffer_size)
Proto:static inline unsigned int obj_to_index(const struct kmem_cache *cache, const struct page *page, void *obj)
Type:unsigned int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const struct kmem_cache * | cache | |
| const struct page * | page | |
| void * | obj |
| 113 | offset = obj - slab: first object |
| 114 | Return reciprocal_divide(offset, reciprocal_buffer_size) |
| Name | Describe |
|---|---|
| slab_put_obj | |
| assign_tag | This function assigns a tag to an object considering the following:* 1 |
| 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 |