Lines Matching refs:co
16 * 4. Neither the name of the author nor the names of any co-contributors
178 smb_co_rele(struct smb_connobj *co)
183 SMB_CO_LOCK(co);
184 if (co->co_usecount > 1) {
185 co->co_usecount--;
186 SMB_CO_UNLOCK(co);
189 ASSERT(co->co_usecount == 1);
190 co->co_usecount = 0;
197 ASSERT(SLIST_EMPTY(&co->co_children));
214 * Note the old: smb_co_gone(co, scred);
217 old_flags = co->co_flags;
218 co->co_flags |= SMBO_GONE;
219 SMB_CO_UNLOCK(co);
221 if ((old_flags & SMBO_GONE) == 0 && co->co_gone)
222 co->co_gone(co);
229 parent = co->co_parent;
234 SLIST_REMOVE(&parent->co_children, co,
243 if (co->co_free) {
244 co->co_free(co);
266 smb_co_kill(struct smb_connobj *co)
270 SMB_CO_LOCK(co);
271 old_flags = co->co_flags;
272 co->co_flags |= SMBO_GONE;
273 SMB_CO_UNLOCK(co);
280 if ((old_flags & SMBO_GONE) == 0 && co->co_gone)
281 co->co_gone(co);
437 struct smb_connobj *co;
448 SLIST_FOREACH(co, &smb_vclist.co_children, co_next) {
449 vcp = CPTOVC(co);
497 co->co_usecount++;
566 smb_connobj_t *co;
573 SLIST_FOREACH(co, &(VCTOCP(vcp)->co_children), co_next) {
574 ssp = CPTOSS(co);
677 struct smb_connobj *co;
686 SLIST_FOREACH(co, &(VCTOCP(vcp)->co_children), co_next) {
687 ssp = CPTOSS(co);
709 co->co_usecount++;
849 struct smb_connobj *co;
853 SLIST_FOREACH(co, &smb_vclist.co_children, co_next) {
854 vcp = CPTOVC(co);
875 struct smb_connobj *co;
896 SLIST_FOREACH(co, &smb_vclist.co_children, co_next) {
897 vcp = CPTOVC(co);