Searched refs:match_calloc (Results 1 – 4 of 4) sorted by relevance
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | check_kmalloc_wrong_size.c | 68 static void match_calloc(const char *fn, struct expression *expr, void *_arg_nr) in match_calloc() function 89 add_function_assign_hook("calloc", &match_calloc, INT_PTR(1)); in check_kmalloc_wrong_size() 94 add_function_assign_hook("kcalloc", &match_calloc, INT_PTR(1)); in check_kmalloc_wrong_size()
|
H A D | smatch_constraints_required.c | 225 static void match_calloc(const char *fn, struct expression *expr, void *_start_arg) in match_calloc() function 474 add_allocation_function("realloc", &match_calloc, 0); in register_constraints_required() 489 add_allocation_function("kcalloc", &match_calloc, 0); in register_constraints_required() 490 add_allocation_function("kmalloc_array", &match_calloc, 0); in register_constraints_required() 491 add_allocation_function("devm_kcalloc", &match_calloc, 1); in register_constraints_required()
|
H A D | smatch_buf_size.c | 734 static void match_calloc(const char *fn, struct expression *expr, void *_param) in match_calloc() function 928 add_allocation_function("calloc", &match_calloc, 0); in register_buf_size() 940 add_allocation_function("kcalloc", &match_calloc, 0); in register_buf_size() 941 add_allocation_function("kmalloc_array", &match_calloc, 0); in register_buf_size() 942 add_allocation_function("devm_kmalloc_array", &match_calloc, 1); in register_buf_size()
|
H A D | smatch_buf_comparison.c | 216 static void match_calloc(const char *fn, struct expression *expr, void *_start_arg) in match_calloc() function 822 add_allocation_function("kcalloc", &match_calloc, 0); in register_buf_comparison() 823 add_allocation_function("devm_kcalloc", &match_calloc, 1); in register_buf_comparison() 824 add_allocation_function("kmalloc_array", &match_calloc, 0); in register_buf_comparison()
|