Home
last modified time | relevance | path

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

/linux/lib/
H A Dcodetag.c40 void codetag_lock_module_list(struct codetag_type *cttype) in codetag_lock_module_list() argument
42 down_read(&cttype->mod_lock); in codetag_lock_module_list()
45 bool codetag_trylock_module_list(struct codetag_type *cttype) in codetag_trylock_module_list() argument
47 return down_read_trylock(&cttype->mod_lock) != 0; in codetag_trylock_module_list()
50 void codetag_unlock_module_list(struct codetag_type *cttype) in codetag_unlock_module_list() argument
52 up_read(&cttype->mod_lock); in codetag_unlock_module_list()
55 unsigned long codetag_get_content_id(struct codetag_type *cttype) in codetag_get_content_id() argument
57 lockdep_assert_held(&cttype->mod_lock); in codetag_get_content_id()
59 return cttype->content_id; in codetag_get_content_id()
62 unsigned int codetag_get_count(struct codetag_type *cttype) in codetag_get_count() argument
[all …]
/linux/include/linux/
H A Dcodetag.h56 struct codetag_type *cttype; member
77 void codetag_lock_module_list(struct codetag_type *cttype);
78 bool codetag_trylock_module_list(struct codetag_type *cttype);
79 void codetag_unlock_module_list(struct codetag_type *cttype);
80 unsigned long codetag_get_content_id(struct codetag_type *cttype);
81 unsigned int codetag_get_count(struct codetag_type *cttype);
82 struct codetag_iterator codetag_get_ct_iter(struct codetag_type *cttype);