Go to the documentation of this file. 1#ifndef __VSF_LINUX_KREF_H__
2#define __VSF_LINUX_KREF_H__
14#define KREF_INIT(__N) { .refcount = REFCOUNT_INIT(__N) }
16static inline void kref_init(
struct kref *
kref)
21static inline unsigned int kref_read(
const struct kref *
kref)
26static inline void kref_get(
struct kref *
kref)
31static inline int kref_put(
struct kref *
kref,
void (*release)(
struct kref *
kref))
refcount_t refcount
Definition kref.h:11