Lines Matching full:tmr
433 struct k_itimer *tmr; in alloc_posix_timer() local
438 tmr = kmem_cache_zalloc(posix_timers_cache, GFP_KERNEL); in alloc_posix_timer()
439 if (!tmr) in alloc_posix_timer()
440 return tmr; in alloc_posix_timer()
442 if (unlikely(!posixtimer_init_sigqueue(&tmr->sigq))) { in alloc_posix_timer()
443 kmem_cache_free(posix_timers_cache, tmr); in alloc_posix_timer()
446 rcuref_init(&tmr->rcuref, 1); in alloc_posix_timer()
447 return tmr; in alloc_posix_timer()
450 void posixtimer_free_timer(struct k_itimer *tmr) in posixtimer_free_timer() argument
452 put_pid(tmr->it_pid); in posixtimer_free_timer()
453 if (tmr->sigq.ucounts) in posixtimer_free_timer()
454 dec_rlimit_put_ucounts(tmr->sigq.ucounts, UCOUNT_RLIMIT_SIGPENDING); in posixtimer_free_timer()
455 kfree_rcu(tmr, rcu); in posixtimer_free_timer()
458 static void posix_timer_unhash_and_free(struct k_itimer *tmr) in posix_timer_unhash_and_free() argument
460 struct timer_hash_bucket *bucket = hash_bucket(posix_sig_owner(tmr), tmr->it_id); in posix_timer_unhash_and_free()
463 hlist_del_rcu(&tmr->t_hash); in posix_timer_unhash_and_free()
464 posixtimer_putref(tmr); in posix_timer_unhash_and_free()
1022 static inline void posix_timer_cleanup_ignored(struct k_itimer *tmr) in posix_timer_cleanup_ignored() argument
1024 if (!hlist_unhashed(&tmr->ignored_list)) { in posix_timer_cleanup_ignored()
1025 hlist_del_init(&tmr->ignored_list); in posix_timer_cleanup_ignored()
1026 posixtimer_putref(tmr); in posix_timer_cleanup_ignored()