/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ipnat.c | 102 natstat_t ns, *nsp; in main() local 108 nsp = &ns; in main() 302 nsp->ns_mapped[0], nsp->ns_mapped[1]); in dostats() 304 nsp->ns_added, nsp->ns_expire); in dostats() 306 nsp->ns_memfail, nsp->ns_badnat); in dostats() 308 nsp->ns_inuse, nsp->ns_orphans, nsp->ns_rules); in dostats() 312 nsp->ns_table, nsp->ns_list); in dostats() 324 while (nsp->ns_list) { in dostats() 347 showhostmap(nsp); in dostats() 364 nsp->ns_hostmap_sz); in showhostmap() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | ns_generic.c | 75 struct ns_info *nsp; in ns_setup() local 77 for (nsp = ns_info; nsp->ns_name; nsp++) { in ns_setup() 78 nsp->ns_init(stack, stkptr); in ns_setup() 90 struct ns_info *nsp; local 112 for (nsp = ns_info; nsp->ns_name; nsp++) { 115 return (nsp); 137 struct ns_info *nsp; local 165 struct ns_info *nsp; local 186 struct ns_info *nsp; local 287 struct ns_info *nsp; local [all …]
|
/illumos-gate/usr/src/uts/common/inet/ipf/ |
H A D | ip_compat.c | 218 nat_save_t *nsp; local 248 nsp = (nat_save_t *)ptr; 249 bzero((char *)nsp, sizeof (*nsp)); 250 nsp->ipn_next = nsc.ipn_next; 251 nsp->ipn_dsize = nsc.ipn_dsize; 252 nsp->ipn_nat.nat_inip = nsc.ipn_nat.nat_inip; 253 nsp->ipn_nat.nat_outip = nsc.ipn_nat.nat_outip; 254 nsp->ipn_nat.nat_oip = nsc.ipn_nat.nat_oip; 257 nsp->ipn_nat.nat_oport = nsc.ipn_nat.nat_oport; 258 nsp->ipn_nat.nat_flags = nsc.ipn_nat.nat_flags; [all …]
|
/illumos-gate/usr/src/ucblib/libcurses/ |
H A D | refresh.c | 154 char *nsp, *csp, *ce; in makech() local 175 nsp = &win->_y[wy][wx]; in makech() 189 if (*nsp != *csp) { in makech() 227 if (SO && (*nsp&_STANDOUT) != in makech() 229 if (*nsp & _STANDOUT) { in makech() 248 (void) _putchar((*csp = *nsp) & in makech() 251 (void) _putchar(*nsp & 0177); in makech() 270 (void) _putchar(*nsp & 0177); in makech() 275 if (UC && (*nsp & _STANDOUT)) { in makech() 279 nsp++; in makech() [all …]
|
/illumos-gate/usr/src/cmd/auditreduce/ |
H A D | main.c | 202 if (nsp <= max_sproc) { in mfork() 219 if (nsp <= max_sproc * (max_sproc - 1)) { in mfork() 220 tofork = nsp / max_sproc; in mfork() 221 if (nsp % max_sproc) in mfork() 573 mcount(int nsp, int lo) in mcount() argument 579 if (nsp > max_sproc) { in mcount() 580 if (nsp <= max_sproc * (max_sproc - 1)) { in mcount() 581 tofork = nsp / max_sproc; in mcount() 582 if (nsp % max_sproc) in mcount() 587 nnsp = nsp / tofork; in mcount() [all …]
|
/illumos-gate/usr/src/uts/common/klm/ |
H A D | nlm_impl.c | 2202 for (nsp = hostp->nh_shrlist; nsp != NULL; nsp = nsp->ns_next) in nlm_shres_track() 2203 if (nsp->ns_vp == vp && nlm_shres_equal(shrp, nsp->ns_shr)) in nlm_shres_track() 2214 nsp = nsp_new; in nlm_shres_track() 2237 nsp = nsp->ns_next; in nlm_shres_untrack() 2248 nsp = nsp->ns_next; in nlm_shres_untrack() 2266 for (nsp = hostp->nh_shrlist; nsp != NULL; nsp = nsp->ns_next) { in nlm_get_active_shres() 2269 nsp_new = nlm_shres_create_item(nsp->ns_shr, nsp->ns_vp); in nlm_get_active_shres() 2288 nsp = nslist; in nlm_free_shrlist() 2313 nsp = kmem_alloc(sizeof (*nsp), KM_SLEEP); in nlm_shres_create_item() 2320 return (nsp); in nlm_shres_create_item() [all …]
|
H A D | nlm_client.c | 148 struct nlm_shres *nsp_head, *nsp; in nlm_reclaim_client() local 221 while (nsp != NULL) { in nlm_reclaim_client() 223 nsp->ns_shr, state); in nlm_reclaim_client() 226 nsp = nsp->ns_next; in nlm_reclaim_client() 233 nsp->ns_shr); in nlm_reclaim_client() 235 nsp->ns_shr); in nlm_reclaim_client() 238 nsp = nsp->ns_next; in nlm_reclaim_client() 502 while (nsp != NULL) { in nlm_client_cancel_all() 508 nlm_local_shrcancel(nsp->ns_vp, nsp->ns_shr); in nlm_client_cancel_all() 509 nlm_shres_untrack(hostp, nsp->ns_vp, nsp->ns_shr); in nlm_client_cancel_all() [all …]
|
/illumos-gate/usr/src/lib/libnvme/common/ |
H A D | libnvme.c | 1083 nvme_ns_init(nvme_ctrl_t *ctrl, uint32_t nsid, nvme_ns_t **nsp) in nvme_ns_init() argument 1087 if (nsp == NULL) { in nvme_ns_init() 1108 *nsp = ns; in nvme_ns_init() 1169 if (nsp == NULL) { in nvme_ns_init_by_name() 1195 *nsp = init.nnia_ns; in nvme_ns_init_by_name() 1201 nvme_ns_t **nsp) in nvme_ctrl_ns_init() argument 1229 if (nsp == NULL) { in nvme_ctrl_ns_init() 1232 nsp)); in nvme_ctrl_ns_init() 1241 if (nsp != NULL) { in nvme_ctrl_ns_init() 1242 *nsp = NULL; in nvme_ctrl_ns_init() [all …]
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_scheme.c | 370 fmd_scheme_t *sp, *nsp = NULL; in fmd_scheme_hash_lookup() local 383 nsp = fmd_scheme_create(name); in fmd_scheme_hash_lookup() 387 nsp->sch_next = shp->sch_hash[h]; in fmd_scheme_hash_lookup() 388 shp->sch_hash[h] = sp = nsp; in fmd_scheme_hash_lookup() 390 fmd_scheme_hash_release(shp, nsp); in fmd_scheme_hash_lookup() 391 nsp = NULL; in fmd_scheme_hash_lookup() 407 if (nsp != NULL) { in fmd_scheme_hash_lookup()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | netstack.c | 329 netstack_t **nsp; in netstack_zone_create() local 350 for (nsp = &netstack_head; *nsp != NULL; in netstack_zone_create() 351 nsp = &((*nsp)->netstack_next)) { in netstack_zone_create() 352 if ((*nsp)->netstack_stackid == stackid) { in netstack_zone_create() 358 ns = *nsp; in netstack_zone_create() 378 *nsp = ns; in netstack_zone_create() 1065 netstack_t **nsp, *ns = (netstack_t *)arg; in netstack_reap() local 1082 for (nsp = &netstack_head; *nsp != NULL; in netstack_reap() 1083 nsp = &(*nsp)->netstack_next) { in netstack_reap() 1084 if (*nsp == ns) { in netstack_reap() [all …]
|
H A D | sunmdi.c | 6086 struct pi_errs *nsp; in mdi_pi_kstat_create() local 6106 nsp = (struct pi_errs *)kerrsp->ks_data; in mdi_pi_kstat_create() 6107 kstat_named_init(&nsp->pi_softerrs, "Soft Errors", KSTAT_DATA_UINT32); in mdi_pi_kstat_create() 6109 kstat_named_init(&nsp->pi_transerrs, "Transport Errors", in mdi_pi_kstat_create() 6111 kstat_named_init(&nsp->pi_icnt_busy, "Interconnect Busy", in mdi_pi_kstat_create() 6113 kstat_named_init(&nsp->pi_icnt_errors, "Interconnect Errors", in mdi_pi_kstat_create() 6115 kstat_named_init(&nsp->pi_phci_rsrc, "pHCI No Resources", in mdi_pi_kstat_create() 6117 kstat_named_init(&nsp->pi_phci_localerr, "pHCI Local Errors", in mdi_pi_kstat_create() 6119 kstat_named_init(&nsp->pi_phci_invstate, "pHCI Invalid State", in mdi_pi_kstat_create() 6121 kstat_named_init(&nsp->pi_failedfrom, "Failed From", in mdi_pi_kstat_create() [all …]
|
/illumos-gate/usr/src/cmd/fm/fmstat/common/ |
H A D | fmstat.c | 264 fmd_stat_t *tsp, *nsp, *sp; in modstat_compute() local 277 for (nsp = ams->ams_buf; nsp < ams->ams_buf + ams->ams_len; nsp++) { in modstat_compute() 279 const char *p = strrchr(nsp->fmds_name, '.'); in modstat_compute() 289 strncmp(nsp->fmds_name, "fmd.", 4) != 0) in modstat_compute() 292 if (tsp->fmds_type != nsp->fmds_type) { in modstat_compute() 294 nsp->fmds_name, tsp->fmds_type, in modstat_compute() 295 nsp->fmds_type); in modstat_compute() 298 sp->fmds_value = nsp->fmds_value; in modstat_compute()
|
/illumos-gate/usr/src/uts/common/fs/specfs/ |
H A D | specsubr.c | 120 struct snode *nsp; in specvp() local 138 nsp = kmem_cache_alloc(snode_cache, KM_SLEEP); in specvp() 153 sp = nsp; /* Use pre-allocated snode */ in specvp() 206 kmem_cache_free(snode_cache, nsp); in specvp() 540 struct snode *nsp, /* pre-allocated snode */ in get_cvp() argument 548 sp = nsp; /* Use pre-allocated snode */ in get_cvp() 587 struct snode *sp, *nsp; in commonvp() local 591 nsp = kmem_cache_alloc(snode_cache, KM_SLEEP); in commonvp() 595 sp = nsp; /* Use pre-alloced snode */ in commonvp() 624 kmem_cache_free(snode_cache, nsp); in commonvp()
|
/illumos-gate/usr/src/cmd/fm/fminject/common/ |
H A D | inj_string.c | 148 inj_strtime(hrtime_t *nsp, const char *units) in inj_strtime() argument 172 hrtime_t val = *nsp, mul = 1; in inj_strtime() 191 *nsp = val; in inj_strtime()
|
/illumos-gate/usr/src/cmd/fs.d/udfs/mkfs/ |
H A D | mkfs.c | 608 struct nsr_desc *nsp; in volseqinit() local 653 nsp = (struct nsr_desc *)buf; in volseqinit() 654 nsp->nsr_str_type = 0; in volseqinit() 655 nsp->nsr_ver = 1; in volseqinit() 656 (void) strncpy((int8_t *)nsp->nsr_id, "BEA01", 5); in volseqinit() 658 nsp = (struct nsr_desc *)&buf[2048]; in volseqinit() 659 nsp->nsr_str_type = 0; in volseqinit() 660 nsp->nsr_ver = 1; in volseqinit() 663 nsp = (struct nsr_desc *)&buf[4096]; in volseqinit() 664 nsp->nsr_str_type = 0; in volseqinit() [all …]
|
/illumos-gate/usr/src/uts/common/inet/sctp/ |
H A D | sctp_asconf.c | 1553 sctp_saddr_ipif_t *nsp; in sctp_del_ip() local 1626 nsp = sctp_saddr_lookup(sctp, &addr, ifindex); in sctp_del_ip() 1627 if (nsp == NULL) { in sctp_del_ip() 1641 nsp->saddr_ipif_delete_pending = 1; in sctp_del_ip() 1642 nsp->saddr_ipif_dontsrc = 1; in sctp_del_ip() 1713 nsp = sctp_saddr_lookup(sctp, &addr, ifindex); in sctp_del_ip() 1714 ASSERT(nsp != NULL); in sctp_del_ip() 1715 nsp->saddr_ipif_delete_pending = 0; in sctp_del_ip() 1716 nsp->saddr_ipif_dontsrc = 0; in sctp_del_ip()
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_mbox.c | 2476 if (nsp->cmn.fPort) { in emlxs_mb_check_sparm() 2481 iptr = (uint32_t *)&nsp->portName; in emlxs_mb_check_sparm() 2486 iptr = (uint32_t *)&nsp->nodeName; in emlxs_mb_check_sparm() 2491 if (nsp->cls2.classValid) { in emlxs_mb_check_sparm() 2493 ((nsp->cls2.rcvDataSizeMsb & 0x0f) << 8) | nsp->cls2. in emlxs_mb_check_sparm() 2499 nsp->cls2.rcvDataSizeMsb = nsp->cmn.bbRcvSizeMsb; in emlxs_mb_check_sparm() 2500 nsp->cls2.rcvDataSizeLsb = nsp->cmn.bbRcvSizeLsb; in emlxs_mb_check_sparm() 2505 if (nsp->cls3.classValid) { in emlxs_mb_check_sparm() 2507 ((nsp->cls3.rcvDataSizeMsb & 0x0f) << 8) | nsp->cls3. in emlxs_mb_check_sparm() 2513 nsp->cls3.rcvDataSizeMsb = nsp->cmn.bbRcvSizeMsb; in emlxs_mb_check_sparm() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/ext-event-transport/ |
H A D | fmevt_inbound.c | 146 fmevt_rs_burst(fmd_hdl_t *hdl, char *ruleset, char **nsp, char **subsysp, in fmevt_rs_burst() argument 176 if (nsp) in fmevt_rs_burst() 177 *nsp = ns; /* caller must free if alloc == B_TRUE */ in fmevt_rs_burst()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | xec.c | 926 Namval_t *path=nsp, *fpath=nsp, *onsp=shp->namespace; in enter_namespace() 929 if(nsp) in enter_namespace() 931 if(!nv_istable(nsp)) in enter_namespace() 932 nsp = 0; in enter_namespace() 936 if(!nsp && !onsp) in enter_namespace() 938 if(onsp == nsp) in enter_namespace() 939 return(nsp); in enter_namespace() 943 if(!nsp) in enter_namespace() 954 if(nsp) in enter_namespace() 961 dtview(root,nv_dict(nsp)); in enter_namespace() [all …]
|
H A D | nvdisc.c | 1153 Namval_t *nsp = shp->namespace; in nv_bfsearch() local 1158 shp->namespace = nsp; in nv_bfsearch()
|
H A D | nvtype.c | 88 Namval_t *nsp; member 821 tp->nsp = bp; in nv_addtype()
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_decl.c | 1109 dt_scope_t *nsp; in dt_scope_destroy() local 1111 for (; dsp != NULL; dsp = nsp) { in dt_scope_destroy() 1114 nsp = dsp->ds_next; in dt_scope_destroy()
|
/illumos-gate/usr/src/uts/common/fs/ |
H A D | fem.c | 3195 struct fem_list *nsp; /* New fem_list being cloned */ in fem_remove_node() local 3199 nsp = femlist_create(sp->feml_ssize); in fem_remove_node() 3207 fem_dup_list(sp, nsp); in fem_remove_node() 3208 error = remove_node(nsp, baseops, opset, datap); in fem_remove_node() 3210 fem_release(nsp); in fem_remove_node() 3211 } else if (nsp->feml_tos == 1) { in fem_remove_node() 3213 fem_release(nsp); in fem_remove_node() 3216 fh->femh_list = nsp; in fem_remove_node() 3221 fem_release(nsp); in fem_remove_node()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | typeset.c | 474 Namval_t *nsp = tp->sh->namespace; in print_value() local 502 tp->sh->namespace = nsp; in print_value()
|
/illumos-gate/usr/src/lib/lib9p/common/backend/ |
H A D | fs.c | 3216 uint64_t *nsp) in getcrtime() argument 3224 *nsp = 0; in getcrtime() 3239 *nsp = vals[1]; in getcrtime()
|