• Home
  • Raw
  • Download

Lines Matching refs:dsos

90 void __dsos__add(struct dsos *dsos, struct dso *dso)  in __dsos__add()  argument
92 list_add_tail(&dso->node, &dsos->head); in __dsos__add()
93 __dsos__findnew_link_by_longname(&dsos->root, dso, NULL); in __dsos__add()
117 void dsos__add(struct dsos *dsos, struct dso *dso) in dsos__add() argument
119 down_write(&dsos->lock); in dsos__add()
120 __dsos__add(dsos, dso); in dsos__add()
121 up_write(&dsos->lock); in dsos__add()
124 struct dso *__dsos__find(struct dsos *dsos, const char *name, bool cmp_short) in __dsos__find() argument
129 list_for_each_entry(pos, &dsos->head, node) in __dsos__find()
134 return __dsos__findnew_by_longname(&dsos->root, name); in __dsos__find()
137 struct dso *dsos__find(struct dsos *dsos, const char *name, bool cmp_short) in dsos__find() argument
140 down_read(&dsos->lock); in dsos__find()
141 dso = __dsos__find(dsos, name, cmp_short); in dsos__find()
142 up_read(&dsos->lock); in dsos__find()
178 struct dso *__dsos__addnew(struct dsos *dsos, const char *name) in __dsos__addnew() argument
183 __dsos__add(dsos, dso); in __dsos__addnew()
191 struct dso *__dsos__findnew(struct dsos *dsos, const char *name) in __dsos__findnew() argument
193 struct dso *dso = __dsos__find(dsos, name, false); in __dsos__findnew()
195 return dso ? dso : __dsos__addnew(dsos, name); in __dsos__findnew()
198 struct dso *dsos__findnew(struct dsos *dsos, const char *name) in dsos__findnew() argument
201 down_write(&dsos->lock); in dsos__findnew()
202 dso = dso__get(__dsos__findnew(dsos, name)); in dsos__findnew()
203 up_write(&dsos->lock); in dsos__findnew()