XenevaOS
Loading...
Searching...
No Matches
refcount_types.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _LINUX_REFCOUNT_TYPES_H
3#define _LINUX_REFCOUNT_TYPES_H
4
5/*
6 * DCL <linux/refcount_types.h> -- byte-port of mainline's, except the include.
7 *
8 * Mainline's file includes <linux/types.h>, because that is where atomic_t
9 * lives there. In this tree atomic_t is defined by <linux/atomic.h> (which
10 * also carries every accessor over it), and types.h does not know the name,
11 * so the include is the one deliberate difference. Everything below -- the
12 * struct, the field name, the typedef -- is mainline's verbatim, and the
13 * field name matters: drm_connector.c:1070 reaches inside struct kref and
14 * writes refcount_dec_and_test(&conn->base.refcount.refcount), so a rename
15 * would not compile anywhere that expression appears.
16 */
17#include <linux/atomic.h>
18
30
31#endif /* _LINUX_REFCOUNT_TYPES_H */
struct refcount_struct refcount_t
Definition atomic.h:31
Definition refcount_types.h:27
atomic_t refs
Definition refcount_types.h:28