mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
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:
parent
d448578b44
commit
4c89b33380
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue