Home
last modified time | relevance | path

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

/Linux-v6.6/kernel/rcu/
Drefscale.c581 static bool (*rts_acquire)(struct refscale_typesafe *rtsp, unsigned int *start);
582 static bool (*rts_release)(struct refscale_typesafe *rtsp, unsigned int start);
585 static bool typesafe_ref_acquire(struct refscale_typesafe *rtsp, unsigned int *start) in typesafe_ref_acquire() argument
587 return atomic_inc_not_zero(&rtsp->rts_refctr); in typesafe_ref_acquire()
591 static bool typesafe_ref_release(struct refscale_typesafe *rtsp, unsigned int start) in typesafe_ref_release() argument
593 if (!atomic_dec_return(&rtsp->rts_refctr)) { in typesafe_ref_release()
594 WRITE_ONCE(rtsp->a, rtsp->a + 1); in typesafe_ref_release()
595 kmem_cache_free(typesafe_kmem_cachep, rtsp); in typesafe_ref_release()
601 static bool typesafe_lock_acquire(struct refscale_typesafe *rtsp, unsigned int *start) in typesafe_lock_acquire() argument
603 spin_lock(&rtsp->rts_lock); in typesafe_lock_acquire()
[all …]