Searched refs:max_len (Results 1 – 4 of 4) sorted by relevance
/kernel/ |
D | sysctl-test.c | 319 size_t max_len = 32, len = max_len; in sysctl_test_api_dointvec_write_single_less_int_min() local 321 char *buffer = kunit_kzalloc(test, max_len, GFP_USER); in sysctl_test_api_dointvec_write_single_less_int_min() 331 (size_t)snprintf(buffer, max_len, "-%lu", in sysctl_test_api_dointvec_write_single_less_int_min() 333 max_len); in sysctl_test_api_dointvec_write_single_less_int_min() 337 KUNIT_EXPECT_EQ(test, max_len, len); in sysctl_test_api_dointvec_write_single_less_int_min() 357 size_t max_len = 32, len = max_len; in sysctl_test_api_dointvec_write_single_greater_int_max() local 359 char *buffer = kunit_kzalloc(test, max_len, GFP_USER); in sysctl_test_api_dointvec_write_single_greater_int_max() 364 KUNIT_ASSERT_LT(test, (size_t)snprintf(buffer, max_len, "%lu", in sysctl_test_api_dointvec_write_single_greater_int_max() 366 max_len); in sysctl_test_api_dointvec_write_single_greater_int_max() 369 KUNIT_ASSERT_EQ(test, max_len, len); in sysctl_test_api_dointvec_write_single_greater_int_max()
|
/kernel/debug/kdb/ |
D | kdb_private.h | 87 extern int kallsyms_symbol_complete(char *prefix_name, int max_len);
|
D | kdb_support.c | 186 int kallsyms_symbol_complete(char *prefix_name, int max_len) in kallsyms_symbol_complete() argument 198 prev_len = min_t(int, max_len-1, in kallsyms_symbol_complete()
|
/kernel/events/ |
D | core.c | 515 u64 max_len = READ_ONCE(perf_sample_allowed_ns); in perf_sample_event_took() local 520 if (max_len == 0) in perf_sample_event_took() 535 if (avg_len <= max_len) in perf_sample_event_took() 539 __report_allowed = max_len; in perf_sample_event_took()
|