File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
sys/compat/linuxkpi/common Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -74,11 +74,11 @@ radix_tree_exception(void *arg)
7474 return ((uintptr_t )arg & RADIX_TREE_ENTRY_MASK );
7575}
7676
77- void * radix_tree_lookup (struct radix_tree_root * , unsigned long );
77+ void * radix_tree_lookup (const struct radix_tree_root * , unsigned long );
7878void * radix_tree_delete (struct radix_tree_root * , unsigned long );
7979int radix_tree_insert (struct radix_tree_root * , unsigned long , void * );
8080int radix_tree_store (struct radix_tree_root * , unsigned long , void * * );
81- bool radix_tree_iter_find (struct radix_tree_root * , struct radix_tree_iter * , void * * * );
81+ bool radix_tree_iter_find (const struct radix_tree_root * , struct radix_tree_iter * , void * * * );
8282void radix_tree_iter_delete (struct radix_tree_root * , struct radix_tree_iter * , void * * );
8383
8484#endif /* _LINUXKPI_LINUX_RADIX_TREE_H_ */
Original file line number Diff line number Diff line change 4141static MALLOC_DEFINE (M_RADIX , "radix ", "Linux radix compat" );
4242
4343static inline unsigned long
44- radix_max (struct radix_tree_root * root )
44+ radix_max (const struct radix_tree_root * root )
4545{
4646 return ((1UL << (root -> height * RADIX_TREE_MAP_SHIFT )) - 1UL );
4747}
@@ -64,7 +64,7 @@ radix_tree_clean_root_node(struct radix_tree_root *root)
6464}
6565
6666void *
67- radix_tree_lookup (struct radix_tree_root * root , unsigned long index )
67+ radix_tree_lookup (const struct radix_tree_root * root , unsigned long index )
6868{
6969 struct radix_tree_node * node ;
7070 void * item ;
@@ -85,8 +85,8 @@ radix_tree_lookup(struct radix_tree_root *root, unsigned long index)
8585}
8686
8787bool
88- radix_tree_iter_find (struct radix_tree_root * root , struct radix_tree_iter * iter ,
89- void * * * pppslot )
88+ radix_tree_iter_find (const struct radix_tree_root * root ,
89+ struct radix_tree_iter * iter , void * * * pppslot )
9090{
9191 struct radix_tree_node * node ;
9292 unsigned long index = iter -> index ;
You can’t perform that action at this time.
0 commit comments