1#ifndef __LINUX_KREF_H__
2#define __LINUX_KREF_H__
48#define KREF_INIT(n) { REFCOUNT_INIT(n) }
50static inline void kref_init(
struct kref*
kref)
55static inline void kref_get(
struct kref*
kref)
60static inline int kref_get_unless_zero(
struct kref*
kref)
65static inline unsigned int kref_read(
const struct kref*
kref)
84static inline int kref_put(
struct kref*
kref,
void (*release)(
struct kref*
kref))
refcount_t refcount
Definition kref.h:45
Definition refcount_types.h:27