Home
last modified time | relevance | path

Searched refs:grp (Results 1 – 25 of 123) sorted by relevance

12345

/illumos-gate/usr/src/uts/common/io/aggr/
H A Daggr_send.c55 aggr_send_update_policy(aggr_grp_t *grp, uint32_t policy) in aggr_send_update_policy() argument
59 ASSERT(MAC_PERIM_HELD(grp->lg_mh)); in aggr_send_update_policy()
68 grp->lg_tx_policy = policy; in aggr_send_update_policy()
69 grp->lg_mac_tx_policy = mac_policy; in aggr_send_update_policy()
82 aggr_grp_t *grp = arg; in aggr_find_tx_ring() local
86 rw_enter(&grp->lg_tx_lock, RW_READER); in aggr_find_tx_ring()
87 if (grp->lg_ntx_ports == 0) { in aggr_find_tx_ring()
92 rw_exit(&grp->lg_tx_lock); in aggr_find_tx_ring()
96 hash = mac_pkt_hash(DL_ETHER, mp, grp->lg_mac_tx_policy, B_TRUE); in aggr_find_tx_ring()
97 port = grp->lg_tx_ports[hash % grp->lg_ntx_ports]; in aggr_find_tx_ring()
[all …]
H A Daggr_grp.c206 aggr_grp_t *grp = buf; in aggr_grp_constructor() local
208 bzero(grp, sizeof (*grp)); in aggr_grp_constructor()
209 mutex_init(&grp->lg_lacp_lock, NULL, MUTEX_DEFAULT, NULL); in aggr_grp_constructor()
210 cv_init(&grp->lg_lacp_cv, NULL, CV_DEFAULT, NULL); in aggr_grp_constructor()
211 rw_init(&grp->lg_tx_lock, NULL, RW_DRIVER, NULL); in aggr_grp_constructor()
212 mutex_init(&grp->lg_port_lock, NULL, MUTEX_DEFAULT, NULL); in aggr_grp_constructor()
213 cv_init(&grp->lg_port_cv, NULL, CV_DEFAULT, NULL); in aggr_grp_constructor()
214 mutex_init(&grp->lg_tx_flowctl_lock, NULL, MUTEX_DEFAULT, NULL); in aggr_grp_constructor()
215 cv_init(&grp->lg_tx_flowctl_cv, NULL, CV_DEFAULT, NULL); in aggr_grp_constructor()
216 grp->lg_link_state = LINK_STATE_UNKNOWN; in aggr_grp_constructor()
[all …]
H A Daggr_port.c132 aggr_port_create(aggr_grp_t *grp, const datalink_id_t linkid, boolean_t force, in aggr_port_create() argument
180 if (((err = dls_mgmt_get_linkinfo(grp->lg_linkid, in aggr_port_create()
338 aggr_port_notify_link(aggr_grp_t *grp, aggr_port_t *port) in aggr_port_notify_link() argument
348 ASSERT(MAC_PERIM_HELD(grp->lg_mh)); in aggr_port_notify_link()
378 mutex_enter(&grp->lg_stat_lock); in aggr_port_notify_link()
381 do_detach |= (ifspeed != grp->lg_ifspeed); in aggr_port_notify_link()
383 do_attach |= (ifspeed == grp->lg_ifspeed); in aggr_port_notify_link()
385 mutex_exit(&grp->lg_stat_lock); in aggr_port_notify_link()
391 link_state_changed = aggr_grp_attach_port(grp, port); in aggr_port_notify_link()
394 link_state_changed = aggr_grp_detach_port(grp, port); in aggr_port_notify_link()
[all …]
H A Daggr_ctl.c151 laioc_info_group_t grp; in aggr_ioc_info_new_grp() local
153 if (state->bytes_left < sizeof (grp)) in aggr_ioc_info_new_grp()
156 grp.lg_linkid = linkid; in aggr_ioc_info_new_grp()
157 grp.lg_key = key; in aggr_ioc_info_new_grp()
158 bcopy(mac, grp.lg_mac, ETHERADDRL); in aggr_ioc_info_new_grp()
159 grp.lg_mac_fixed = mac_fixed; in aggr_ioc_info_new_grp()
160 grp.lg_force = force; in aggr_ioc_info_new_grp()
161 grp.lg_policy = policy; in aggr_ioc_info_new_grp()
162 grp.lg_nports = nports; in aggr_ioc_info_new_grp()
163 grp.lg_lacp_mode = lacp_mode; in aggr_ioc_info_new_grp()
[all …]
H A Daggr_recv.c58 aggr_grp_t *grp = port->lp_grp; in aggr_recv_lacp() local
61 if (grp->lg_promisc) { in aggr_recv_lacp()
65 aggr_mac_rx(grp->lg_mh, mrh, nmp); in aggr_recv_lacp()
81 aggr_grp_t *grp = port->lp_grp; in aggr_recv_path_cb() local
83 if (grp->lg_lacp_mode == AGGR_LACP_OFF) { in aggr_recv_path_cb()
84 aggr_mac_rx(grp->lg_mh, mrh, mp); in aggr_recv_path_cb()
106 aggr_mac_rx(grp->lg_mh, mrh, in aggr_recv_path_cb()
141 aggr_mac_rx(grp->lg_mh, mrh, in aggr_recv_path_cb()
160 aggr_mac_rx(grp->lg_mh, mrh, head); in aggr_recv_path_cb()
H A Daggr_lacp.c156 aggr_grp_t *grp = port->lp_grp; in aggr_port_timer_thread() local
188 mac_perim_enter_by_mh(grp->lg_mh, &mph); in aggr_port_timer_thread()
244 aggr_grp_t *grp = portp->lp_grp; in lacp_port_unselect() local
246 ASSERT((grp->lg_mh == NULL) || MAC_PERIM_HELD(grp->lg_mh)); in lacp_port_unselect()
986 aggr_lacp_update_mode(aggr_grp_t *grp, aggr_lacp_mode_t mode) in aggr_lacp_update_mode() argument
988 aggr_lacp_mode_t old_mode = grp->lg_lacp_mode; in aggr_lacp_update_mode()
991 ASSERT(MAC_PERIM_HELD(grp->lg_mh)); in aggr_lacp_update_mode()
992 ASSERT(!grp->lg_closing); in aggr_lacp_update_mode()
997 grp->lg_lacp_mode = mode; in aggr_lacp_update_mode()
999 for (port = grp->lg_ports; port != NULL; port = port->lp_next) { in aggr_lacp_update_mode()
[all …]
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac_bcast.c109 mac_bcast_grp_mip(void *grp) in mac_bcast_grp_mip() argument
111 mac_bcast_grp_t *bcast_grp = grp; in mac_bcast_grp_mip()
123 mac_bcast_grp_t *grp = bcast_grp; in mac_bcast_grp_free() local
124 mac_impl_t *mip = grp->mbg_mac_impl; in mac_bcast_grp_free()
128 ASSERT(grp->mbg_addr != NULL); in mac_bcast_grp_free()
129 kmem_free(grp->mbg_addr, mip->mi_type->mt_addr_length); in mac_bcast_grp_free()
130 kmem_free(grp->mbg_clients, in mac_bcast_grp_free()
131 grp->mbg_nclients_alloc * sizeof (mac_bcast_grp_mcip_t)); in mac_bcast_grp_free()
133 kmem_cache_free(mac_bcast_grp_cache, grp); in mac_bcast_grp_free()
144 mac_bcast_grp_t *grp = arg1; in mac_bcast_send() local
[all …]
/illumos-gate/usr/src/cmd/mdb/intel/modules/genunix/
H A Dgcore_isadep.c44 gcore_getgregs(mdb_klwp_t *lwp, gregset_t grp) in gcore_getgregs() argument
58 grp[REG_RDI] = rp->r_rdi; in gcore_getgregs()
59 grp[REG_RSI] = rp->r_rsi; in gcore_getgregs()
60 grp[REG_RDX] = rp->r_rdx; in gcore_getgregs()
61 grp[REG_RCX] = rp->r_rcx; in gcore_getgregs()
62 grp[REG_R8] = rp->r_r8; in gcore_getgregs()
63 grp[REG_R9] = rp->r_r9; in gcore_getgregs()
64 grp[REG_RAX] = rp->r_rax; in gcore_getgregs()
65 grp[REG_RBX] = rp->r_rbx; in gcore_getgregs()
66 grp[REG_RBP] = rp->r_rbp; in gcore_getgregs()
[all …]
/illumos-gate/usr/src/uts/intel/os/
H A Darchdep.c287 getgregs(klwp_t *lwp, gregset_t grp) in getgregs() argument
293 grp[REG_RDI] = rp->r_rdi; in getgregs()
294 grp[REG_RSI] = rp->r_rsi; in getgregs()
295 grp[REG_RDX] = rp->r_rdx; in getgregs()
296 grp[REG_RCX] = rp->r_rcx; in getgregs()
297 grp[REG_R8] = rp->r_r8; in getgregs()
298 grp[REG_R9] = rp->r_r9; in getgregs()
299 grp[REG_RAX] = rp->r_rax; in getgregs()
300 grp[REG_RBX] = rp->r_rbx; in getgregs()
301 grp[REG_RBP] = rp->r_rbp; in getgregs()
[all …]
/illumos-gate/usr/src/cmd/getent/
H A Ddogetgr.c35 putgrent(const struct group *grp, FILE *fp) in putgrent() argument
40 if (grp == NULL) { in putgrent()
45 grp->gr_name != NULL ? grp->gr_name : "", in putgrent()
46 grp->gr_passwd != NULL ? grp->gr_passwd : "", in putgrent()
47 grp->gr_gid) == EOF) in putgrent()
50 mem = grp ->gr_mem; in putgrent()
69 struct group *grp; in dogetgr() local
75 while ((grp = getgrent()) != NULL) in dogetgr()
76 (void) putgrent(grp, stdout); in dogetgr()
92 ((grp = getgrgid(gid)) == NULL)) { in dogetgr()
[all …]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dipmp.c45 #define IPMP_GRP_TO_IPST(grp) PHYINT_TO_IPST((grp)->gr_phyint) argument
127 ipmp_grp_t *grp; in ipmp_grp_create() local
133 if ((grp = kmem_zalloc(sizeof (ipmp_grp_t), KM_NOSLEEP)) == NULL) in ipmp_grp_create()
136 (void) strlcpy(grp->gr_name, grname, sizeof (grp->gr_name)); in ipmp_grp_create()
137 (void) strlcpy(grp->gr_ifname, grname, sizeof (grp->gr_ifname)); in ipmp_grp_create()
143 grp->gr_phyint = phyi; in ipmp_grp_create()
148 if (ipmp_grp_create_kstats(grp) != 0) { in ipmp_grp_create()
149 kmem_free(grp, sizeof (ipmp_grp_t)); in ipmp_grp_create()
157 ipmp_grp_destroy_kstats(grp); in ipmp_grp_create()
158 kmem_free(grp, sizeof (ipmp_grp_t)); in ipmp_grp_create()
[all …]
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddwarf_groups.c121 struct Dwarf_Group_Data_s *grp = &dbg->de_groupnumbers; in _dwarf_insert_in_group_map() local
126 if (!grp->gd_map) { in _dwarf_insert_in_group_map()
129 dwarf_initialize_search_hash(&grp->gd_map, in _dwarf_insert_in_group_map()
130 grp_data_hashfunc,grp->gd_number_of_sections); in _dwarf_insert_in_group_map()
131 if (!grp->gd_map) { in _dwarf_insert_in_group_map()
141 entry2 = dwarf_tsearch(entry3,&grp->gd_map,grp_compare_function); in _dwarf_insert_in_group_map()
154 ++grp->gd_map_entry_count; in _dwarf_insert_in_group_map()
169 struct Dwarf_Group_Data_s *grp = &dbg->de_groupnumbers; in _dwarf_section_get_target_group_from_map() local
171 if (!grp->gd_map) { in _dwarf_section_get_target_group_from_map()
178 entry2 = dwarf_tfind(&entry, &grp->gd_map,grp_compare_function); in _dwarf_section_get_target_group_from_map()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_lgrp.c277 smb_group_t grp; in smb_lgrp_add() local
288 bzero(&grp, sizeof (grp)); in smb_lgrp_add()
289 grp.sg_name = smb_strlwr(gname); in smb_lgrp_add()
290 grp.sg_cmnt = cmnt; in smb_lgrp_add()
325 grp.sg_id.gs_type = SidTypeAlias; in smb_lgrp_add()
326 grp.sg_domain = SMB_DOMAIN_LOCAL; in smb_lgrp_add()
327 grp.sg_rid = pxgrp->gr_gid; in smb_lgrp_add()
335 grp.sg_id.gs_type = wka->wka_type; in smb_lgrp_add()
341 (void) smb_sid_getrid(sid, &grp.sg_rid); in smb_lgrp_add()
343 grp.sg_domain = SMB_DOMAIN_BUILTIN; in smb_lgrp_add()
[all …]
/illumos-gate/usr/src/lib/libpkg/common/
H A Dncgrpw.c61 static int dup_gr_ent(struct group *grp);
116 struct group *grp; in cgrnam() local
138 if ((grp = clgrnam(nam)) != NULL || in cgrnam()
139 (grp = getgrnam(nam)) != NULL) { in cgrnam()
141 if (dup_gr_ent(grp)) in cgrnam()
146 grp = (struct group *)NULL; in cgrnam()
165 (void) memmove(itemp->data, grp, in cgrnam()
176 return (grp); in cgrnam()
276 struct group *grp; in cgrgid() local
295 if ((grp = clgrgid(gid)) != NULL || in cgrgid()
[all …]
/illumos-gate/usr/src/lib/fm/libfmd_log/common/
H A Dfmd_log.c107 ea_object_t *grp, *obj; in fmd_log_load_record() local
116 if ((grp = ea_get_object_tree(&lp->log_ea, 1)) == NULL) in fmd_log_load_record()
119 if (grp->eo_catalog != CAT_FMA_RGROUP && in fmd_log_load_record()
120 grp->eo_catalog != CAT_FMA_GROUP) { in fmd_log_load_record()
121 fmd_log_dprintf(lp, "bad catalog tag 0x%x\n", grp->eo_catalog); in fmd_log_load_record()
122 ea_free_object(grp, EUP_ALLOC); in fmd_log_load_record()
127 rp->rec_grp = grp; in fmd_log_load_record()
132 for (obj = grp->eo_group.eg_objs; obj != NULL; obj = obj->eo_next) { in fmd_log_load_record()
197 fmd_log_record_t *rp, ea_object_t *grp) in fmd_log_load_xref() argument
209 for (obj = grp->eo_group.eg_objs; obj != NULL; obj = obj->eo_next) { in fmd_log_load_xref()
[all …]
/illumos-gate/usr/src/test/smbclient-tests/tests/smbmount/
H A Dtp_smbmount_016.ksh66 grp=$(ls -ld $TMNT|awk '{ print $4}')
67 if [[ $grp != "$tc_gid" ]]; then
68 cti_fail "FAIL: ls -ld, expected $tc_gid, got $grp"
74 grp=$(cd $TMNT; ls -l a|awk '{ print $4}')
75 if [[ $grp != "$tc_gid" ]]; then
76 cti_fail "FAIL: touch a, expected $tc_gid usr, got $grp"
83 grp=$(cd $TMNT; ls -ld b|awk '{ print $4}')
84 if [[ $grp != "$tc_gid" ]]; then
85 cti_fail "FAIL: mkdir b, expected $tc_gid usr, got $grp"
/illumos-gate/usr/src/lib/libcmdutils/common/
H A Dgid.c51 struct group *grp; in findnextgid() local
55 for (grp = getgrent(); grp != NULL; grp = getgrent()) { in findnextgid()
56 if (isreservedgid(grp->gr_gid)) /* Skip reserved IDs */ in findnextgid()
58 if (grp->gr_gid >= gid) { in findnextgid()
59 if (grp->gr_gid == stop) { /* Overflow check */ in findnextgid()
63 gid = grp->gr_gid + 1; in findnextgid()
66 if (grp == NULL && errno != 0) { in findnextgid()
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Ddirectory_provider_nsswitch.c50 directory_entry_rpc *pent, struct passwd *pwd, struct group *grp,
83 struct group *grp = NULL; in directory_provider_nsswitch_get() local
148 grp = getgrgid(rid - LOCALRID_GID_MIN); in directory_provider_nsswitch_get()
149 if (grp == NULL) { in directory_provider_nsswitch_get()
208 grp = getgrnam(name); in directory_provider_nsswitch_get()
209 if (grp == NULL && errno != 0) { in directory_provider_nsswitch_get()
227 if (pwd == NULL && grp == NULL) in directory_provider_nsswitch_get()
230 de = directory_provider_nsswitch_populate(&del[i], pwd, grp, in directory_provider_nsswitch_get()
251 struct group *grp, in directory_provider_nsswitch_populate() argument
262 if (pwd != NULL && grp != NULL) { in directory_provider_nsswitch_populate()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Did.c197 register struct group* grp; in getids() local
289 gname = (grp = getgrgid(group)) ? grp->gr_name : (char*)0; in getids()
308 while (grp = getgrent()) in getids()
309 if (p = grp->gr_mem) in getids()
318 sfprintf(sp, "%s", grp->gr_name); in getids()
319 else sfprintf(sp, "%u(%s)", grp->gr_gid, grp->gr_name); in getids()
334 putid(sp, flags, " egid", (grp = getgrgid(egid)) ? grp->gr_name : (char*)0, egid); in getids()
343 if (grp = getgrgid(group)) in getids()
345 if (flags & O_FLAG) sfprintf(sp, "%s", grp->gr_name); in getids()
346 else sfprintf(sp, "%u(%s)", group, grp->gr_name); in getids()
[all …]
/illumos-gate/usr/src/uts/sparc/v9/os/
H A Dv9dep.c328 setgregs(klwp_t *lwp, gregset_t grp) in setgregs() argument
339 tbits = (((grp[REG_CCR] & TSTATE_CCR_MASK) << TSTATE_CCR_SHIFT) | in setgregs()
340 ((grp[REG_ASI] & TSTATE_ASI_MASK) << TSTATE_ASI_SHIFT)); in setgregs()
345 fp->fpu_fprs = (uint32_t)grp[REG_FPRS]; in setgregs()
354 rp->r_pc = grp[REG_PC] & ~03L; in setgregs()
355 rp->r_npc = grp[REG_nPC] & ~03L; in setgregs()
356 rp->r_y = grp[REG_Y]; in setgregs()
358 rp->r_g1 = grp[REG_G1]; in setgregs()
359 rp->r_g2 = grp[REG_G2]; in setgregs()
360 rp->r_g3 = grp[REG_G3]; in setgregs()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dutil.c65 struct group *grp; in make_group_list() local
87 while ((grp = (*this->next)(this)) != NULL) { in make_group_list()
88 if ((gid_t)grp->gr_gid == basegid) in make_group_list()
90 for (i = 0; grp->gr_mem[i]; i++) { in make_group_list()
91 if (!strcmp(grp->gr_mem[i], name)) { in make_group_list()
94 groups[ng++] = grp->gr_gid; in make_group_list()
/illumos-gate/usr/src/cmd/oamuser/lib/
H A Dvgroup.c56 struct group *grp; in valid_group() local
72 if ((r = valid_gid((gid_t)l, &grp)) == NOTUNIQUE) { in valid_group()
75 *gptr = grp; in valid_group()
83 if (valid_gname(group, &grp, &warn) == NOTUNIQUE) { in valid_group()
87 *gptr = grp; in valid_group()
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/lib/snmp/
H A Dsnmplib.c321 oidgroup_t *grp; in snmp_get_int() local
332 if ((grp = locate_oid_group(smd, prefix)) == NULL) { in snmp_get_int()
344 if (lookup_int(prefix, row, val, grp->is_volatile) == 0) in snmp_get_int()
350 fetch_bulk(smd, grp->oidstrs, grp->n_oids, row, grp->is_volatile, &err); in snmp_get_int()
357 if (lookup_int(prefix, row, val, grp->is_volatile) < 0) in snmp_get_int()
375 oidgroup_t *grp; in snmp_get_str() local
388 if ((grp = locate_oid_group(smd, prefix)) == NULL) { in snmp_get_str()
400 if (lookup_str(prefix, row, &val, grp->is_volatile) == 0) { in snmp_get_str()
410 fetch_bulk(smd, grp->oidstrs, grp->n_oids, row, grp->is_volatile, &err); in snmp_get_str()
417 if (lookup_str(prefix, row, &val, grp->is_volatile) < 0) in snmp_get_str()
[all …]
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_log.c223 ea_object_t *grp, *obj; in fmd_log_check_hdr() local
238 if ((grp = ea_get_object_tree(&lp->log_ea, 1)) == NULL || in fmd_log_check_hdr()
239 grp->eo_catalog != CAT_FMA_GROUP) { in fmd_log_check_hdr()
240 ea_free_object(grp, EUP_ALLOC); in fmd_log_check_hdr()
245 for (obj = grp->eo_group.eg_objs; obj != NULL; obj = obj->eo_next) { in fmd_log_check_hdr()
268 ea_free_object(grp, EUP_ALLOC); in fmd_log_check_hdr()
280 ea_free_object(grp, EUP_ALLOC); in fmd_log_check_hdr()
293 hdr_size = ea_pack_object(grp, NULL, 0); in fmd_log_check_hdr()
294 ea_free_object(grp, EUP_ALLOC); in fmd_log_check_hdr()
307 if ((grp = ea_get_object_tree(&lp->log_ea, 1)) == NULL || in fmd_log_check_hdr()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dgroup.h58 #define GROUP_SIZE(grp) ((grp)->grp_size) argument
63 #define GROUP_ACCESS(grp, index) ((grp)->grp_set[index]) argument

12345