HomeFreeBSD

linuxkpi: Add refcount.h

Description

linuxkpi: Add refcount.h

Implement some refcount functions needed by drm.
Just use the atomic_t struct and functions from linuxkpi for simplicity.

Sponsored-by: The FreeBSD Foundation

Reviewed by: hselsasky
Differential Revision: https://reviews.freebsd.org/D24985

Details

Provenance
manuAuthored on
Differential Revision
D24985: linuxkpi: Add refcount.h
Parents
rS361449: linuxkpi: Add __same_type and __must_be_array macros
Branches
Unknown
Tags
Unknown