Home
last modified time | relevance | path

Searched refs:ngrp (Results 1 – 9 of 9) sorted by relevance

/titanic_50/usr/src/cmd/ptools/pcred/
H A Dpcred.c59 static int ngrp = -1; variable
147 if (ngrp >= 0) { in credupdate()
149 pcr->pr_ngroups = ngrp; in credupdate()
151 (void) memcpy(pcr->pr_groups, groups, ngrp * sizeof (gid_t)); in credupdate()
314 ngrp = _getgroupsbymember(login, groups, (int)ngroups_max, 1); in initcred()
338 ngrp = 0; in initcred()
342 if (ngrp >= ngroups_max) { in initcred()
347 groups[ngrp++] = str2gid(cgrp); in initcred()
/titanic_50/usr/src/lib/libproc/common/
H A Dproc_set.c41 int ngrp; in Psetcred() local
51 ngrp = credp->pr_ngroups; in Psetcred()
52 ctlsize = sizeof (prcred_t) + (ngrp - 1) * sizeof (gid_t); in Psetcred()
/titanic_50/usr/src/uts/common/os/
H A Dsid.c383 kcrsid_gidstosids(zone_t *zone, int ngrp, gid_t *grp) in kcrsid_gidstosids() argument
389 if (ngrp == 0) in kcrsid_gidstosids()
393 list = kmem_zalloc(KSIDLIST_MEM(ngrp), KM_SLEEP); in kcrsid_gidstosids()
395 list->ksl_nsid = ngrp; in kcrsid_gidstosids()
398 for (i = 0; i < ngrp; i++) { in kcrsid_gidstosids()
414 kmem_free(list, KSIDLIST_MEM(ngrp)); in kcrsid_gidstosids()
H A Dcred.c83 #define CREDGRPSZ(ngrp) (sizeof (credgrp_t) + ((ngrp - 1) * sizeof (gid_t))) argument
/titanic_50/usr/src/lib/libeti/form/common/
H A Dregcmp.c83 int nbra, ngrp; in libform_regcmp() local
92 i = nbra = ngrp = 0; in libform_regcmp()
140 *ep++ = ngrp++; in libform_regcmp()
/titanic_50/usr/src/uts/common/fs/proc/
H A Dprcontrol.c112 int ngrp; in ctlsize() local
184 ngrp = argp->prcred.pr_ngroups; in ctlsize()
185 if (ngrp < 0 || ngrp > ngroups_max) in ctlsize()
190 size += ngrp * sizeof (gid_t); in ctlsize()
533 int ngrp; in ctlsize32() local
602 ngrp = argp->prcred.pr_ngroups; in ctlsize32()
603 if (ngrp < 0 || ngrp > ngroups_max) in ctlsize32()
608 size += ngrp * sizeof (gid32_t); in ctlsize32()
2185 int ngrp = prcred->pr_ngroups; in pr_scred() local
2188 if (ngrp < 0 || ngrp > ngroups_max) in pr_scred()
[all …]
/titanic_50/usr/src/uts/common/io/mac/
H A Dmac_client.c1700 mac_group_t *ngrp; in mac_client_set_rings_prop() local
1790 ngrp = mac_reserve_rx_group(mcip, mac_addr, in mac_client_set_rings_prop()
1793 if (ngrp == NULL) in mac_client_set_rings_prop()
1796 if (mac_rx_switch_group(mcip, defgrp, ngrp) != in mac_client_set_rings_prop()
1798 mac_stop_group(ngrp); in mac_client_set_rings_prop()
1812 ngrp = mac_reserve_rx_group(mcip, mac_addr, B_TRUE); in mac_client_set_rings_prop()
1813 if (ngrp == NULL) in mac_client_set_rings_prop()
1817 if (mac_rx_switch_group(mcip, defgrp, ngrp) != 0) { in mac_client_set_rings_prop()
1818 mac_release_rx_group(mcip, ngrp); in mac_client_set_rings_prop()
1823 MAC_RX_RING_RESERVED(mip, ngrp->mrg_cur_count); in mac_client_set_rings_prop()
[all …]
H A Dmac.c8010 mac_group_t *ngrp; in mac_check_primary_relocation() local
8036 ngrp = mac_reserve_rx_group(mcip, mac_addr, B_TRUE); in mac_check_primary_relocation()
8037 if (ngrp == NULL) in mac_check_primary_relocation()
8039 if (mac_rx_switch_group(mcip, defgrp, ngrp) != 0) { in mac_check_primary_relocation()
8040 mac_stop_group(ngrp); in mac_check_primary_relocation()
/titanic_50/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_lgrp.c1078 int ngrp = sizeof (builtin) / sizeof (builtin[0]); in smb_lgrp_start() local
1108 for (i = 0; i < ngrp; i++) { in smb_lgrp_start()