HomeFreeBSD

linuxkpi: Add refcount_dec_and_test

Description

linuxkpi: Add refcount_dec_and_test

In Linux this takes a refcount_t argument but in linuxkpi struct kref
uses an atomic_t for the refcount and code in drm directly uses this
function with a kref so use an atomic_t here.

Reviewed by: bz
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D36099

(cherry picked from commit 1a6874e3a411c7876bee55bc631119a2e1cd09a2)

Details

Provenance
manuAuthored on Aug 9 2022, 9:03 AM
Reviewer
bz
Differential Revision
D36099: linuxkpi: Add refcount_dec_and_test
Parents
rGad5366ba416b: linuxkpi: Add for_each_sgtable_{sg,page}
Branches
Unknown
Tags
Unknown