Function report |
Source Code:mm\util.c |
Create Date:2022-07-28 14:21:34 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kstrndup - allocate space for and copy an existing string*@s: the string to duplicate*@max: read at most @max chars from @s*@gfp: the GFP mask used in the kmalloc() call when allocating memory* Note: Use kmemdup_nul() instead if the size is known exactly
Proto:char *kstrndup(const char *s, size_t max, gfp_t gfp)
Type:char
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const char * | s | |
| size_t | max | |
| gfp_t | gfp |
| 101 | If Not s Then Return NULL |
| 105 | buf = kmalloc_track_caller(len + 1, gfp) |
| 106 | If buf Then |
| 110 | Return buf |
| Name | Describe |
|---|---|
| __kstrncpy | XXX: move to kstrncpy() once merged.* Users should use kfree_const() when freeing these. |
| trigger_request_store | |
| trigger_async_request_store | |
| trigger_custom_fallback_store | |
| __kstrncpy | XXX: move to kstrncpy() once merged.* Users should use kfree_const() when freeing these. |
| wakelock_lookup_add | |
| __parse_imm_string | |
| vmpressure_register_event | vmpressure_register_event() - Bind vmpressure notifications to an eventfd*@memcg: memcg that is interested in vmpressure notifications*@eventfd: eventfd context to link notifications with*@args: event arguments (pressure level threshold, optional mode)* |
| 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 |