Searched refs:kref (Results 1 – 25 of 46) sorted by relevance
12
/include/linux/ |
D | kref.h | 22 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 …]
|
D | user_namespace.h | 13 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()
|
D | utsname.h | 52 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()
|
D | pid_namespace.h | 21 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()
|
D | sync.h | 102 struct kref kref; member 162 struct kref kref; member
|
D | relay.h | 45 struct kref kref; /* channel buffer refcount */ member 66 struct kref kref; /* channel refcount */ member
|
D | posix-clock.h | 120 struct kref kref; member
|
D | tty_driver.h | 296 struct kref kref; /* Reference management */ member 341 kref_get(&d->kref); in tty_driver_kref_get()
|
D | klist.h | 42 struct kref n_ref;
|
D | bsg.h | 72 struct kref ref;
|
D | kobject.h | 67 struct kref kref; member
|
D | tty.h | 242 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()
|
D | nfs_page.h | 45 struct kref wb_kref; /* reference count */
|
D | interrupt.h | 268 struct kref kref; member 271 void (*release)(struct kref *ref);
|
/include/linux/ceph/ |
D | buffer.h | 17 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()
|
D | messenger.h | 85 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()
|
D | osd_client.h | 73 struct kref r_kref; 109 struct kref kref; member 254 extern void ceph_osdc_release_request(struct kref *kref);
|
D | mon_client.h | 48 struct kref kref; member
|
/include/drm/ttm/ |
D | ttm_bo_api.h | 210 struct kref kref; member 211 struct kref list_kref; 313 kref_get(&bo->kref); in ttm_bo_reference()
|
D | ttm_object.h | 127 struct kref refcount;
|
/include/video/ |
D | udlfb.h | 40 struct kref kref; member
|
/include/scsi/ |
D | osd_ore.h | 116 struct kref kref; member
|
/include/linux/mtd/ |
D | blktrans.h | 43 struct kref ref;
|
/include/linux/usb/ |
D | serial.h | 167 struct kref kref; member 171 #define to_usb_serial(d) container_of(d, struct usb_serial, kref)
|
/include/linux/sunrpc/ |
D | cache.h | 54 struct kref ref; 81 void (*cache_put)(struct kref *);
|
12