Home
last modified time | relevance | path

Searched refs:kref (Results 1 – 25 of 46) sorted by relevance

12

/include/linux/
Dkref.h22 struct kref { struct
30 static inline void kref_init(struct kref *kref) in kref_init() argument
32 atomic_set(&kref->refcount, 1); in kref_init()
39 static inline void kref_get(struct kref *kref) in kref_get() argument
41 WARN_ON(!atomic_read(&kref->refcount)); in kref_get()
42 atomic_inc(&kref->refcount); in kref_get()
63 static inline int kref_sub(struct kref *kref, unsigned int count, in kref_sub() argument
64 void (*release)(struct kref *kref)) in kref_sub() argument
68 if (atomic_sub_and_test((int) count, &kref->refcount)) { in kref_sub()
69 release(kref); in kref_sub()
[all …]
Duser_namespace.h13 struct kref kref; member
27 kref_get(&ns->kref); in get_user_ns()
32 extern void free_user_ns(struct kref *kref);
37 kref_put(&ns->kref, free_user_ns); in put_user_ns()
Dutsname.h52 struct kref kref; member
62 kref_get(&ns->kref); in get_uts_ns()
67 extern void free_uts_ns(struct kref *kref);
71 kref_put(&ns->kref, free_uts_ns); in put_uts_ns()
Dpid_namespace.h21 struct kref kref; member
46 kref_get(&ns->kref); in get_pid_ns()
51 extern void free_pid_ns(struct kref *kref);
58 kref_put(&ns->kref, free_pid_ns); in put_pid_ns()
Dsync.h102 struct kref kref; member
162 struct kref kref; member
Drelay.h45 struct kref kref; /* channel buffer refcount */ member
66 struct kref kref; /* channel refcount */ member
Dposix-clock.h120 struct kref kref; member
Dtty_driver.h296 struct kref kref; /* Reference management */ member
341 kref_get(&d->kref); in tty_driver_kref_get()
Dklist.h42 struct kref n_ref;
Dbsg.h72 struct kref ref;
Dkobject.h67 struct kref kref; member
Dtty.h242 struct kref kref; /* Ref counter */ member
261 struct kref kref; member
397 kref_get(&tty->kref); in tty_kref_get()
507 kref_get(&port->kref); in tty_port_get()
Dnfs_page.h45 struct kref wb_kref; /* reference count */
Dinterrupt.h268 struct kref kref; member
271 void (*release)(struct kref *ref);
/include/linux/ceph/
Dbuffer.h17 struct kref kref; member
24 extern void ceph_buffer_release(struct kref *kref);
28 kref_get(&b->kref); in ceph_buffer_get()
34 kref_put(&b->kref, ceph_buffer_release); in ceph_buffer_put()
Dmessenger.h85 struct kref kref; member
226 kref_get(&msg->kref); in ceph_msg_get()
229 extern void ceph_msg_last_put(struct kref *kref);
232 kref_put(&msg->kref, ceph_msg_last_put); in ceph_msg_put()
Dosd_client.h73 struct kref r_kref;
109 struct kref kref; member
254 extern void ceph_osdc_release_request(struct kref *kref);
Dmon_client.h48 struct kref kref; member
/include/drm/ttm/
Dttm_bo_api.h210 struct kref kref; member
211 struct kref list_kref;
313 kref_get(&bo->kref); in ttm_bo_reference()
Dttm_object.h127 struct kref refcount;
/include/video/
Dudlfb.h40 struct kref kref; member
/include/scsi/
Dosd_ore.h116 struct kref kref; member
/include/linux/mtd/
Dblktrans.h43 struct kref ref;
/include/linux/usb/
Dserial.h167 struct kref kref; member
171 #define to_usb_serial(d) container_of(d, struct usb_serial, kref)
/include/linux/sunrpc/
Dcache.h54 struct kref ref;
81 void (*cache_put)(struct kref *);

12