Page MenuHomeFreeBSD

linuxkpi: Add kref_put_lock
ClosedPublic

Authored by manu on Aug 4 2020, 10:49 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Mar 7, 5:19 AM
Unknown Object (File)
Wed, Mar 4, 3:33 AM
Unknown Object (File)
Mon, Mar 2, 3:46 PM
Unknown Object (File)
Sun, Mar 1, 7:09 PM
Unknown Object (File)
Sun, Feb 22, 2:31 PM
Unknown Object (File)
Jan 29 2026, 5:52 AM
Unknown Object (File)
Jan 14 2026, 11:35 PM
Unknown Object (File)
Dec 21 2025, 11:31 PM
Subscribers

Details

Summary

Same as kref_put but in addition to calling the rel function it will
acquire the lock first.

Sponsored-by: The FreeBSD Foundation

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

manu requested review of this revision.Aug 4 2020, 10:49 AM
sys/compat/linuxkpi/common/include/linux/kref.h
89 ↗(On Diff #75354)

()'s around return argument.

91 ↗(On Diff #75354)

ditto.

manu marked 2 inline comments as done.

Remove wip stuff.

Don't forget to MFC to 11 and 12.

This revision is now accepted and ready to land.Aug 4 2020, 11:22 AM
This revision was automatically updated to reflect the committed changes.