Lines Matching defs:acg

103 	struct exacct_globals *acg;
111 for (acg = list_head(&exacct_globals_list); acg != NULL;
112 acg = list_next(&exacct_globals_list, acg)) {
113 mutex_enter(&acg->ac_proc.ac_lock);
114 mutex_enter(&acg->ac_task.ac_lock);
115 mutex_enter(&acg->ac_flow.ac_lock);
116 mutex_enter(&acg->ac_net.ac_lock);
119 for (acg = list_head(&exacct_globals_list); !in_use && acg != NULL;
120 acg = list_next(&exacct_globals_list, acg)) {
125 if (vn_compare(acg->ac_proc.ac_vnode, vp) ||
126 vn_compare(acg->ac_task.ac_vnode, vp) ||
127 vn_compare(acg->ac_flow.ac_vnode, vp) ||
128 vn_compare(acg->ac_net.ac_vnode, vp))
135 for (acg = list_head(&exacct_globals_list); acg != NULL;
136 acg = list_next(&exacct_globals_list, acg)) {
137 mutex_exit(&acg->ac_proc.ac_lock);
138 mutex_exit(&acg->ac_task.ac_lock);
139 mutex_exit(&acg->ac_flow.ac_lock);
140 mutex_exit(&acg->ac_net.ac_lock);
434 struct exacct_globals *acg;
436 acg = zone_getspecific(exacct_zone_key, zone);
442 ASSERT(acg != NULL);
446 info = &acg->ac_task;
450 info = &acg->ac_proc;
461 info = &acg->ac_flow;
465 info = &acg->ac_net;
553 struct exacct_globals *acg;
555 acg = kmem_zalloc(sizeof (*acg), KM_SLEEP);
557 list_insert_tail(&exacct_globals_list, acg);
559 return (acg);
581 struct exacct_globals *acg = data;
588 exacct_free_info(&acg->ac_proc);
589 exacct_free_info(&acg->ac_task);
590 exacct_free_info(&acg->ac_flow);
591 exacct_free_info(&acg->ac_net);
598 struct exacct_globals *acg = data;
601 list_remove(&exacct_globals_list, acg);
604 mutex_destroy(&acg->ac_proc.ac_lock);
605 mutex_destroy(&acg->ac_task.ac_lock);
606 mutex_destroy(&acg->ac_flow.ac_lock);
607 mutex_destroy(&acg->ac_net.ac_lock);
608 kmem_free(acg, sizeof (*acg));