Searched refs:DUMMY_PTR (Results 1 – 1 of 1) sorted by relevance
| /Linux-v4.19/tools/testing/radix-tree/ |
| D | idr-test.c | 22 #define DUMMY_PTR ((void *)0x12) macro 46 assert(idr_alloc_cyclic(&idr, DUMMY_PTR, 0, 0x4000, GFP_KERNEL) == 0); in idr_alloc_test() 47 assert(idr_alloc_cyclic(&idr, DUMMY_PTR, 0x3ffd, 0x4000, GFP_KERNEL) == 0x3ffd); in idr_alloc_test() 105 assert(idr_replace(&idr, DUMMY_PTR, 3) == NULL); in idr_null_test() 106 assert(idr_replace(&idr, DUMMY_PTR, 4) == NULL); in idr_null_test() 107 assert(idr_replace(&idr, NULL, 4) == DUMMY_PTR); in idr_null_test() 108 assert(idr_replace(&idr, DUMMY_PTR, 11) == ERR_PTR(-ENOENT)); in idr_null_test() 123 assert(idr_replace(&idr, DUMMY_PTR, 3) == ERR_PTR(-ENOENT)); in idr_null_test() 124 assert(idr_replace(&idr, DUMMY_PTR, 0) == NULL); in idr_null_test() 125 assert(idr_replace(&idr, NULL, 0) == DUMMY_PTR); in idr_null_test() [all …]
|