Page MenuHomeFreeBSD

LinuxKPI: Import some linux/rbtree.h functions from OpenBSD
ClosedPublic

Authored by wulf on Nov 6 2021, 10:28 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 24, 5:52 AM
Unknown Object (File)
Nov 25 2025, 4:25 PM
Unknown Object (File)
Nov 25 2025, 7:22 AM
Unknown Object (File)
Nov 11 2025, 3:07 AM
Unknown Object (File)
Nov 6 2025, 3:21 PM
Unknown Object (File)
Nov 2 2025, 8:57 PM
Unknown Object (File)
Oct 26 2025, 8:37 AM
Unknown Object (File)
Oct 24 2025, 9:21 PM

Details

Summary

and implement interval_tree

Required by drm-kmod

MFC after: 2 weeks

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

wulf requested review of this revision.Nov 6 2021, 10:28 AM
This revision is now accepted and ready to land.Nov 6 2021, 3:28 PM
gbe added inline comments.
sys/compat/linuxkpi/common/include/linux/interval_tree.h
5

When these functions are imported from OpenBSD, should that be somewhere noticed in the copyright statement?

sys/compat/linuxkpi/common/include/linux/interval_tree_generic.h
5

When these functions are imported from OpenBSD, should that be somewhere noticed in the copyright statement?

sys/compat/linuxkpi/common/include/linux/interval_tree.h
5

When these functions are imported from OpenBSD, should that be somewhere noticed in the copyright statement?

They are not imported from OpenBSD but made independently. I have no evidences of it.

Only some parts of linux/rbtree.h was imported directly.

sys/compat/linuxkpi/common/include/linux/interval_tree_generic.h
5

They are not imported directly from OpenBSD. OpenBSD version of linux/interval_tree_generic.h is dummy file [1].
But our generic version is inspired by their particular interval_tree implementation, so I agree, I have to add kettenis@ to authors.

[1] https://github.com/openbsd/src/blob/master/sys/dev/pci/drm/include/linux/interval_tree_generic.h

This revision was automatically updated to reflect the committed changes.