Function report |
Source Code:mm\slab_common.c |
Create Date:2022-07-28 14:29:55 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ksize - get the actual amount of memory allocated for a given object*@objp: Pointer to the object* kmalloc may internally round up allocations and return more memory* than requested. ksize() can be used to determine the actual amount of* memory allocated
Proto:size_t ksize(const void *objp)
Type:size_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const void * | objp |
| 1773 | If WARN_ON_ONCE(!objp) Then Return 0 |
| 1796 | kasan_unpoison_shadow(objp, size) |
| 1797 | Return size |
| Name | Describe |
|---|---|
| __do_krealloc | |
| kzfree | kzfree - like kfree but zero memory*@p: object to free memory of* The memory of the object @p points to is zeroed before freed.* If @p is %NULL, kzfree() does nothing.* Note: this function zeroes the whole allocated buffer which can be a good |
| kobjsize | Return the total memory allocated for this pointer, not* just what the caller asked for.* Doesn't have to be accurate, i.e. may have races. |
| tomoyo_memory_ok | moyo_memory_ok - Check memory quota.*@ptr: Pointer to allocated memory.* Returns true on success, false otherwise.* Returns true if @ptr is not NULL and quota not exceeded, false otherwise.* Caller holds tomoyo_policy_lock mutex. |
| 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 |