Function report |
Source Code:lib\test_meminit.c |
Create Date:2022-07-28 06:37:35 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Check the invariants for the buffer allocated from a slab cache.* If the cache has a test constructor, the first 4 bytes of the object must* always remain equal to CTOR_PATTERN.* If the cache isn't an RCU-typesafe one, or if the allocation is done with
Proto:static bool __init check_buf(void *buf, int size, bool want_ctor, bool want_rcu, bool want_zero)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| void * | buf | |
| int | size | |
| bool | want_ctor | |
| bool | want_rcu | |
| bool | want_zero |
| 170 | bool fail = false |
| 176 | If want_ctor Then |
| 177 | If buf != CTOR_PATTERN Then fail = 1 |
| 179 | Else |
| 183 | Return fail |
| Name | Describe |
|---|---|
| do_kmem_cache_size | Test kmem_cache with given parameters: |
| 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 |