Home
last modified time | relevance | path

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

/linux/tools/testing/radix-tree/
H A Didr-test.c14 #define DUMMY_PTR ((void *)0x10) macro
38 assert(idr_alloc_cyclic(&idr, DUMMY_PTR, 0, 0x4000, GFP_KERNEL) == 0); in idr_alloc_test()
39 assert(idr_alloc_cyclic(&idr, DUMMY_PTR, 0x3ffd, 0x4000, GFP_KERNEL) == 0x3ffd); in idr_alloc_test()
97 assert(idr_replace(&idr, DUMMY_PTR, 3) == NULL); in idr_null_test()
98 assert(idr_replace(&idr, DUMMY_PTR, 4) == NULL); in idr_null_test()
99 assert(idr_replace(&idr, NULL, 4) == DUMMY_PTR); in idr_null_test()
100 assert(idr_replace(&idr, DUMMY_PTR, 11) == ERR_PTR(-ENOENT)); in idr_null_test()
115 assert(idr_replace(&idr, DUMMY_PTR, 3) == ERR_PTR(-ENOENT)); in idr_null_test()
116 assert(idr_replace(&idr, DUMMY_PTR, 0) == NULL); in idr_null_test()
117 assert(idr_replace(&idr, NULL, 0) == DUMMY_PTR); in idr_null_test()
[all …]