Home
last modified time | relevance | path

Searched refs:refcount (Results 1 – 13 of 13) sorted by relevance

/kernel/cgroup/
Ddebug.c54 refcnt = refcount_read(&cset->refcount); in current_css_set_read()
82 count = refcount_read(&task_css_set(current)->refcount); in current_css_set_refcount_read()
126 int refcnt = refcount_read(&cset->refcount); in cgroup_css_links_read()
Dcgroup-internal.h189 if (refcount_dec_not_one(&cset->refcount)) in put_css_set()
202 refcount_inc(&cset->refcount); in get_css_set()
Dcgroup.c738 .refcount = REFCOUNT_INIT(1),
942 if (!refcount_dec_and_test(&cset->refcount)) in put_css_set_locked()
1213 refcount_set(&cset->refcount, 1); in find_css_set()
/kernel/
Dkcov.c53 refcount_t refcount; member
389 refcount_inc(&kcov->refcount); in kcov_get()
394 if (refcount_dec_and_test(&kcov->refcount)) { in kcov_put()
487 refcount_set(&kcov->refcount, 1); in kcov_open()
Dfutex.c203 refcount_t refcount; member
825 refcount_set(&pi_state->refcount, 1); in refill_pi_state_cache()
845 WARN_ON_ONCE(!refcount_inc_not_zero(&pi_state->refcount)); in get_pi_state()
857 if (!refcount_dec_and_test(&pi_state->refcount)) in put_pi_state()
887 refcount_set(&pi_state->refcount, 1); in put_pi_state()
930 if (!refcount_inc_not_zero(&pi_state->refcount)) { in exit_pi_state_list()
1087 WARN_ON(!refcount_read(&pi_state->refcount)); in attach_to_pi_state()
/kernel/sched/
Dpsi.c1049 kref_init(&t->refcount); in psi_trigger_create()
1084 struct psi_trigger *t = container_of(ref, struct psi_trigger, refcount); in psi_trigger_destroy()
1158 kref_put(&old->refcount, psi_trigger_destroy); in psi_trigger_replace()
1177 kref_get(&t->refcount); in psi_trigger_poll()
1186 kref_put(&t->refcount, psi_trigger_destroy); in psi_trigger_poll()
Dtopology.c460 if (!atomic_dec_and_test(&old_rd->refcount)) in rq_attach_root()
464 atomic_inc(&rd->refcount); in rq_attach_root()
479 atomic_inc(&rd->refcount); in sched_get_rd()
484 if (!atomic_dec_and_test(&rd->refcount)) in sched_put_rd()
542 atomic_set(&def_root_domain.refcount, 1); in init_defrootdomain()
1228 if (!atomic_read(&d->rd->refcount)) in __free_domain_allocs()
Dfair.c1069 refcount_t refcount; member
1155 period *= refcount_read(&ng->refcount); in task_scan_start()
1180 period *= refcount_read(&ng->refcount); in task_scan_max()
2235 return refcount_inc_not_zero(&grp->refcount); in get_numa_group()
2240 if (refcount_dec_and_test(&grp->refcount)) in put_numa_group()
2261 refcount_set(&grp->refcount, 1); in task_numa_group()
Dsched.h741 atomic_t refcount; member
/kernel/events/
Dinternal.h14 refcount_t refcount; member
Dcore.c1175 refcount_inc(&ctx->refcount); in get_ctx()
1189 if (refcount_dec_and_test(&ctx->refcount)) { in put_ctx()
1272 if (!refcount_inc_not_zero(&ctx->refcount)) { in perf_event_ctx_lock_nested()
1405 !refcount_inc_not_zero(&ctx->refcount)) { in perf_lock_task_context()
1959 if (!atomic_long_inc_not_zero(&group_leader->refcount)) in perf_get_aux_event()
4176 refcount_set(&ctx->refcount, 1); in __perf_event_init_context()
4598 if (WARN(atomic_long_cmpxchg(&event->refcount, 1, 0) != 1, in free_event()
4600 atomic_long_read(&event->refcount), event)) { in free_event()
4661 if (!atomic_long_dec_and_test(&event->refcount)) in put_event()
4765 void *var = &child->ctx->refcount; in perf_event_release_kernel()
[all …]
Dring_buffer.c319 refcount_set(&rb->refcount, 1); in ring_buffer_init()
/kernel/trace/
Dtrace.c7350 refcount_t refcount; member
7355 if (!refcount_dec_and_test(&ref->refcount)) in buffer_ref_release()
7375 if (refcount_read(&ref->refcount) > INT_MAX/2) in buffer_pipe_buf_get()
7378 refcount_inc(&ref->refcount); in buffer_pipe_buf_get()
7454 refcount_set(&ref->refcount, 1); in tracing_buffers_splice_read()