| Function report | 
| Source Code: mm\util.c | Create Date:2022-07-28 14:21:36 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:kmemdup_nul - Create a NUL-terminated string from unterminated data*@s: The data to stringify*@len: The size of the data*@gfp: the GFP mask used in the kmalloc() call when allocating memory* Return: newly allocated copy of @s with NUL-termination or %NULL
Proto:char *kmemdup_nul(const char *s, size_t len, gfp_t gfp)
Type:char
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| const char * | s | |
| size_t | len | |
| gfp_t | gfp | 
| 147 | If Not s Then Return NULL | 
| 150 | buf = kmalloc_track_caller(len + 1, gfp) | 
| 151 | If buf Then | 
| 155 | Return buf | 
| Name | Describe | 
|---|---|
| parse_pred | Called when a predicate is encountered by predicate_parse() | 
| parse_field | |
| parse_synth_field | |
| traceprobe_parse_probe_arg | |
| selinux_sb_eat_lsm_opts | |
| smack_sb_eat_lsm_opts | 
| 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 |