/kernel/linux/linux-5.10/include/linux/ |
H A D | kref.h | 3 * kref.h - library routines for handling generic reference counted objects 19 struct kref { struct 27 * @kref: object in question. 29 static inline void kref_init(struct kref *kref) in kref_init() argument 31 refcount_set(&kref->refcount, 1); in kref_init() 34 static inline unsigned int kref_read(const struct kref *kref) in kref_read() argument 36 return refcount_read(&kref->refcount); in kref_read() 41 * @kref 43 kref_get(struct kref *kref) kref_get() argument 62 kref_put(struct kref *kref, void (*release)(struct kref *kref)) kref_put() argument 71 kref_put_mutex(struct kref *kref, void (*release)(struct kref *kref), struct mutex *lock) kref_put_mutex() argument 82 kref_put_lock(struct kref *kref, void (*release)(struct kref *kref), spinlock_t *lock) kref_put_lock() argument 109 kref_get_unless_zero(struct kref *kref) kref_get_unless_zero() argument [all...] |
H A D | utsname.h | 7 #include <linux/kref.h> 25 struct kref kref; member 36 kref_get(&ns->kref); in get_uts_ns() 41 extern void free_uts_ns(struct kref *kref); 45 kref_put(&ns->kref, free_uts_ns); in put_uts_ns()
|
H A D | time_namespace.h | 7 #include <linux/kref.h> 21 struct kref kref; member 40 kref_get(&ns->kref); in get_time_ns() 47 void free_time_ns(struct kref *kref); 53 kref_put(&ns->kref, free_time_ns); in put_time_ns()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | kref.h | 3 * kref.h - library routines for handling generic reference counted objects 19 struct kref { struct 27 * @kref: object in question. 29 static inline void kref_init(struct kref *kref) in kref_init() argument 31 refcount_set(&kref->refcount, 1); in kref_init() 34 static inline unsigned int kref_read(const struct kref *kref) in kref_read() argument 36 return refcount_read(&kref->refcount); in kref_read() 41 * @kref 43 kref_get(struct kref *kref) kref_get() argument 62 kref_put(struct kref *kref, void (*release)(struct kref *kref)) kref_put() argument 71 kref_put_mutex(struct kref *kref, void (*release)(struct kref *kref), struct mutex *lock) kref_put_mutex() argument 82 kref_put_lock(struct kref *kref, void (*release)(struct kref *kref), spinlock_t *lock) kref_put_lock() argument 109 kref_get_unless_zero(struct kref *kref) kref_get_unless_zero() argument [all...] |
/kernel/linux/linux-5.10/include/linux/ceph/ |
H A D | buffer.h | 5 #include <linux/kref.h> 17 struct kref kref; member 23 extern void ceph_buffer_release(struct kref *kref); 27 kref_get(&b->kref); in ceph_buffer_get() 34 kref_put(&b->kref, ceph_buffer_release); in ceph_buffer_put()
|
H A D | string_table.h | 6 #include <linux/kref.h> 11 struct kref kref; member 20 extern void ceph_release_string(struct kref *ref); 27 kref_get(&str->kref); in ceph_get_string() 35 kref_put(&str->kref, ceph_release_string); in ceph_put_string() 56 kref_get_unless_zero(&___str->kref)) \
|
/kernel/linux/linux-6.6/include/linux/ceph/ |
H A D | buffer.h | 5 #include <linux/kref.h> 17 struct kref kref; member 23 extern void ceph_buffer_release(struct kref *kref); 27 kref_get(&b->kref); in ceph_buffer_get() 34 kref_put(&b->kref, ceph_buffer_release); in ceph_buffer_put()
|
H A D | string_table.h | 6 #include <linux/kref.h> 11 struct kref kref; member 20 extern void ceph_release_string(struct kref *ref); 27 kref_get(&str->kref); in ceph_get_string() 35 kref_put(&str->kref, ceph_release_string); in ceph_put_string() 56 kref_get_unless_zero(&___str->kref)) \
|
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/ |
H A D | i915_drm_client.h | 9 #include <linux/kref.h> 21 struct kref kref; member 37 kref_get(&client->kref); in i915_drm_client_get() 41 void __i915_drm_client_free(struct kref *kref); 45 kref_put(&client->kref, __i915_drm_client_free); in i915_drm_client_put()
|
/kernel/linux/linux-5.10/drivers/target/iscsi/cxgbit/ |
H A D | cxgbit.h | 20 #include <linux/kref.h> 140 struct kref kref; member 185 struct kref kref; member 211 struct kref kref; member 244 void _cxgbit_free_cdev(struct kref *kref); 245 void _cxgbit_free_csk(struct kref *kre [all...] |
/kernel/linux/linux-6.6/drivers/target/iscsi/cxgbit/ |
H A D | cxgbit.h | 20 #include <linux/kref.h> 140 struct kref kref; member 185 struct kref kref; member 211 struct kref kref; member 244 void _cxgbit_free_cdev(struct kref *kref); 245 void _cxgbit_free_csk(struct kref *kre [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/core/ |
H A D | dc_surface.c | 181 static void dc_plane_state_free(struct kref *kref) in dc_plane_state_free() argument 183 struct dc_plane_state *plane_state = container_of(kref, struct dc_plane_state, refcount); in dc_plane_state_free() 198 static void dc_gamma_free(struct kref *kref) in dc_gamma_free() argument 200 struct dc_gamma *gamma = container_of(kref, struct dc_gamma, refcount); in dc_gamma_free() 229 static void dc_transfer_func_free(struct kref *kref) in dc_transfer_func_free() argument 231 struct dc_transfer_func *tf = container_of(kref, struct dc_transfer_func, refcount); in dc_transfer_func_free() 255 static void dc_3dlut_func_free(struct kref *kre argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/core/ |
H A D | dc_surface.c | 180 static void dc_plane_state_free(struct kref *kref) in dc_plane_state_free() argument 182 struct dc_plane_state *plane_state = container_of(kref, struct dc_plane_state, refcount); in dc_plane_state_free() 197 static void dc_gamma_free(struct kref *kref) in dc_gamma_free() argument 199 struct dc_gamma *gamma = container_of(kref, struct dc_gamma, refcount); in dc_gamma_free() 228 static void dc_transfer_func_free(struct kref *kref) in dc_transfer_func_free() argument 230 struct dc_transfer_func *tf = container_of(kref, struct dc_transfer_func, refcount); in dc_transfer_func_free() 254 static void dc_3dlut_func_free(struct kref *kre argument [all...] |
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/spufs/ |
H A D | gang.c | 23 kref_init(&gang->kref); in alloc_spu_gang() 33 static void destroy_spu_gang(struct kref *kref) in destroy_spu_gang() argument 36 gang = container_of(kref, struct spu_gang, kref); in destroy_spu_gang() 43 kref_get(&gang->kref); in get_spu_gang() 49 return kref_put(&gang->kref, &destroy_spu_gang); in put_spu_gang()
|
/kernel/linux/linux-6.6/arch/powerpc/platforms/cell/spufs/ |
H A D | gang.c | 23 kref_init(&gang->kref); in alloc_spu_gang() 33 static void destroy_spu_gang(struct kref *kref) in destroy_spu_gang() argument 36 gang = container_of(kref, struct spu_gang, kref); in destroy_spu_gang() 43 kref_get(&gang->kref); in get_spu_gang() 49 return kref_put(&gang->kref, &destroy_spu_gang); in put_spu_gang()
|
/kernel/linux/linux-5.10/security/integrity/ |
H A D | digsig_asymmetric.c | 33 key_ref_t kref; in request_asymmetric_key() local 35 kref = keyring_search(make_key_ref(key, 1), in request_asymmetric_key() 37 if (!IS_ERR(kref)) { in request_asymmetric_key() 45 key_ref_t kref; in request_asymmetric_key() local 47 kref = keyring_search(make_key_ref(keyring, 1), in request_asymmetric_key() 49 if (IS_ERR(kref)) in request_asymmetric_key() 50 key = ERR_CAST(kref); in request_asymmetric_key() 52 key = key_ref_to_ptr(kref); in request_asymmetric_key()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/ |
H A D | msm_gem_vma.c | 12 msm_gem_address_space_destroy(struct kref *kref) in msm_gem_address_space_destroy() argument 14 struct msm_gem_address_space *aspace = container_of(kref, in msm_gem_address_space_destroy() 15 struct msm_gem_address_space, kref); in msm_gem_address_space_destroy() 28 kref_put(&aspace->kref, msm_gem_address_space_destroy); in msm_gem_address_space_put() 35 kref_get(&aspace->kref); in msm_gem_address_space_get() 137 kref_get(&aspace->kref); in msm_gem_init_vma() 161 kref_init(&aspace->kref); in msm_gem_address_space_create()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/msm/ |
H A D | msm_gem_vma.c | 13 msm_gem_address_space_destroy(struct kref *kref) in msm_gem_address_space_destroy() argument 15 struct msm_gem_address_space *aspace = container_of(kref, in msm_gem_address_space_destroy() 16 struct msm_gem_address_space, kref); in msm_gem_address_space_destroy() 29 kref_put(&aspace->kref, msm_gem_address_space_destroy); in msm_gem_address_space_put() 36 kref_get(&aspace->kref); in msm_gem_address_space_get() 148 kref_get(&aspace->kref); in msm_gem_vma_init() 174 kref_init(&aspace->kref); in msm_gem_address_space_create()
|
/kernel/linux/linux-6.6/security/integrity/ |
H A D | digsig_asymmetric.c | 33 key_ref_t kref; in request_asymmetric_key() local 35 kref = keyring_search(make_key_ref(key, 1), in request_asymmetric_key() 37 if (!IS_ERR(kref)) { in request_asymmetric_key() 45 key_ref_t kref; in request_asymmetric_key() local 47 kref = keyring_search(make_key_ref(keyring, 1), in request_asymmetric_key() 49 if (IS_ERR(kref)) in request_asymmetric_key() 50 key = ERR_CAST(kref); in request_asymmetric_key() 52 key = key_ref_to_ptr(kref); in request_asymmetric_key()
|
/kernel/linux/linux-5.10/include/net/ |
H A D | tls_toe.h | 34 #include <linux/kref.h> 58 * void (*release)(struct kref *kref); 60 * @kref: Number of reference to tls_toe_device 68 void (*release)(struct kref *kref); 69 struct kref kref; member
|
/kernel/linux/linux-6.6/include/net/ |
H A D | tls_toe.h | 34 #include <linux/kref.h> 58 * void (*release)(struct kref *kref); 60 * @kref: Number of reference to tls_toe_device 68 void (*release)(struct kref *kref); 69 struct kref kref; member
|
/kernel/linux/linux-5.10/drivers/acpi/ |
H A D | acpi_ipmi.c | 40 struct kref kref; member 83 struct kref kref; member 121 kref_init(&ipmi_device->kref); in ipmi_dev_alloc() 148 static void ipmi_dev_release_kref(struct kref *kref) in ipmi_dev_release_kref() argument 151 container_of(kref, struct acpi_ipmi_device, kref); in ipmi_dev_release_kref() 176 kref_get(&ipmi_device->kref); in acpi_ipmi_dev_get() 218 ipmi_msg_release_kref(struct kref *kref) ipmi_msg_release_kref() argument [all...] |
/kernel/linux/linux-6.6/drivers/acpi/ |
H A D | acpi_ipmi.c | 40 struct kref kref; member 83 struct kref kref; member 121 kref_init(&ipmi_device->kref); in ipmi_dev_alloc() 148 static void ipmi_dev_release_kref(struct kref *kref) in ipmi_dev_release_kref() argument 151 container_of(kref, struct acpi_ipmi_device, kref); in ipmi_dev_release_kref() 176 kref_get(&ipmi_device->kref); in acpi_ipmi_dev_get() 218 ipmi_msg_release_kref(struct kref *kref) ipmi_msg_release_kref() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/cec/core/ |
H A D | cec-notifier.c | 13 #include <linux/kref.h> 23 struct kref kref; member 59 kref_get(&n->kref); in cec_notifier_get_conn() 79 kref_init(&n->kref); in cec_notifier_get_conn() 86 static void cec_notifier_release(struct kref *kref) in cec_notifier_release() argument 89 container_of(kref, struct cec_notifier, kref); in cec_notifier_release() 99 kref_put(&n->kref, cec_notifier_releas in cec_notifier_put() [all...] |
/kernel/linux/linux-6.6/drivers/media/cec/core/ |
H A D | cec-notifier.c | 15 #include <linux/kref.h> 25 struct kref kref; member 61 kref_get(&n->kref); in cec_notifier_get_conn() 81 kref_init(&n->kref); in cec_notifier_get_conn() 88 static void cec_notifier_release(struct kref *kref) in cec_notifier_release() argument 91 container_of(kref, struct cec_notifier, kref); in cec_notifier_release() 101 kref_put(&n->kref, cec_notifier_releas in cec_notifier_put() [all...] |