linuxkpi: Add radix_tree_deref_slot()
We don't do reference counting, we only dereference the pointer and retunr the value. The amdgpu DRM driver started to use it in Linux 6.10. Reviewed by: bz Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D54502
This commit is contained in:
@@ -68,6 +68,12 @@ struct radix_tree_iter {
|
||||
for ((iter)->index = (start); \
|
||||
radix_tree_iter_find(root, iter, &(slot)); (iter)->index++)
|
||||
|
||||
static inline void *
|
||||
radix_tree_deref_slot(void **slot)
|
||||
{
|
||||
return (*slot);
|
||||
}
|
||||
|
||||
static inline int
|
||||
radix_tree_exception(void *arg)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user