Home
last modified time | relevance | path

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

/illumos-gate/usr/src/uts/common/syscall/
H A Dacctctl.c103 struct exacct_globals *acg; in ac_file_in_use() local
111 for (acg = list_head(&exacct_globals_list); acg != NULL; in ac_file_in_use()
112 acg = list_next(&exacct_globals_list, acg)) { in ac_file_in_use()
113 mutex_enter(&acg->ac_proc.ac_lock); in ac_file_in_use()
114 mutex_enter(&acg->ac_task.ac_lock); in ac_file_in_use()
115 mutex_enter(&acg->ac_flow.ac_lock); in ac_file_in_use()
116 mutex_enter(&acg->ac_net.ac_lock); in ac_file_in_use()
119 for (acg = list_head(&exacct_globals_list); !in_use && acg != NULL; in ac_file_in_use()
120 acg = list_next(&exacct_globals_list, acg)) { in ac_file_in_use()
125 if (vn_compare(acg->ac_proc.ac_vnode, vp) || in ac_file_in_use()
[all …]
H A Dexacctsys.c148 struct exacct_globals *acg; in getacct() local
153 acg = zone_getspecific(exacct_zone_key, curproc->p_zone); in getacct()
156 error = getacct_proc(&acg->ac_proc, id, buf, bufsize, &size); in getacct()
159 error = getacct_task(&acg->ac_task, id, buf, bufsize, &size); in getacct()
176 struct exacct_globals *acg; in putacct() local
187 acg = zone_getspecific(exacct_zone_key, curproc->p_zone); in putacct()
201 error = exacct_tag_proc(&acg->ac_proc, id, tkid, kbuf, in putacct()
208 error = exacct_tag_task(&acg->ac_task, tk, kbuf, in putacct()
292 struct exacct_globals *acg; in wracct() local
305 acg = zone_getspecific(exacct_zone_key, curproc->p_zone); in wracct()
[all …]
/illumos-gate/usr/src/cmd/fs.d/ufs/mkfs/
H A Dmkfs.c457 #define acg cgun.cg macro
2874 (char *)&acg); in alloc()
2875 if (acg.cg_magic != CG_MAGIC) { in alloc()
2879 if (acg.cg_cs.cs_nbfree == 0) { in alloc()
2884 for (d = 0; d < acg.cg_ndblk; d += sblock.fs_frag) in alloc()
2885 if (isblock(&sblock, cg_blksfree(&acg), d / sblock.fs_frag)) in alloc()
2891 clrblock(&sblock, cg_blksfree(&acg), d / sblock.fs_frag); in alloc()
2892 acg.cg_cs.cs_nbfree--; in alloc()
2896 acg.cg_cs.cs_ndir++; in alloc()
2900 cg_blktot(&acg)[cbtocylno(&sblock, d)]--; in alloc() local
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dexacct.c718 struct exacct_globals *acg; in exacct_commit_task() local
729 acg = zone_getspecific(exacct_zone_key, zone); in exacct_commit_task()
730 if (acg == NULL) in exacct_commit_task()
732 (void) exacct_assemble_task_usage(&acg->ac_task, tk, in exacct_commit_task()
735 acg = zone_getspecific(exacct_zone_key, global_zone); in exacct_commit_task()
736 (void) exacct_assemble_task_usage(&acg->ac_task, tk, in exacct_commit_task()
1156 struct exacct_globals *acg, *gacg = NULL; in exacct_commit_proc() local
1169 acg = zone_getspecific(exacct_zone_key, zone); in exacct_commit_proc()
1170 if (acg == NULL) in exacct_commit_proc()
1172 exacct_do_commit_proc(&acg->ac_proc, p, wstat); in exacct_commit_proc()
[all …]
/illumos-gate/usr/src/cmd/fs.d/ufs/fstyp/
H A Dfstyp.c82 #define acg cgun.cg macro
542 if (read(h->fd, (char *)&h->acg, fsp->fs_bsize) != fsp->fs_bsize) { in dumpcg()
546 cgp = (struct cg *)&h->acg; in dumpcg()
547 ocgp = (struct ocg *)&h->acg; in dumpcg()