Page MenuHomeFreeBSD

kref: replace hand-rolled atomic ops with refcount API
ClosedPublic

Authored by mjg on Dec 5 2022, 5:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 27, 10:15 PM
Unknown Object (File)
Nov 13 2025, 7:14 AM
Unknown Object (File)
Nov 13 2025, 7:14 AM
Unknown Object (File)
Nov 13 2025, 7:14 AM
Unknown Object (File)
Nov 13 2025, 2:45 AM
Unknown Object (File)
Oct 29 2025, 11:46 PM
Unknown Object (File)
Oct 24 2025, 4:11 AM
Unknown Object (File)
Oct 3 2025, 8:16 PM

Diff Detail

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

Event Timeline

mjg requested review of this revision.Dec 5 2022, 5:41 PM
mjg added a reviewer: linuxkpi.

Patch looks mostly good!

sys/compat/linuxkpi/common/include/linux/kref.h
46

This comment can go away.

113

Did you check that the return values are identical here?

sys/compat/linuxkpi/common/include/linux/kref.h
46

i'm working on introducing refcount_t

113

i did, it's all fine

This revision was not accepted when it landed; it landed in state Needs Review.Dec 13 2022, 9:25 AM
This revision was automatically updated to reflect the committed changes.
sys/compat/linuxkpi/common/include/linux/kref.h
58

dropping const broke drm-kmod