Home
last modified time | relevance | path

Searched refs:match_calloc (Results 1 – 4 of 4) sorted by relevance

/illumos-gate/usr/src/tools/smatch/src/
H A Dcheck_kmalloc_wrong_size.c68 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 Dsmatch_constraints_required.c225 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 Dsmatch_buf_size.c734 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 Dsmatch_buf_comparison.c216 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()