/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | nandfs.c | 372 struct nandfs_node *node; local 408 node = nandfs_lookup_path(fs, path); 409 if (node == NULL) 415 fs->nf_opened_node = node; 421 nandfs_free_node(struct nandfs_node *node) argument 425 free(node->inode); 426 LIST_FOREACH_SAFE(bmap, &node->bmap_bufs, list, tmp) { 431 free(node); 605 struct nandfs_node *node; local 617 node 633 struct nandfs_node *node; local 768 nandfs_read_inode(struct nandfs *fs, struct nandfs_node *node, nandfs_daddr_t blknr, u_int nblks, void *buf, int raw) argument 851 nandfs_get_map(struct nandfs *fs, struct nandfs_node *node, nandfs_daddr_t blknr, int phys) argument 879 nandfs_bmap_lookup(struct nandfs *fs, struct nandfs_node *node, nandfs_lbn_t lblknr, nandfs_daddr_t *vblknr, int phys) argument [all...] |
/illumos-gate/usr/src/boot/sys/boot/sparc64/loader/ |
H A D | main.c | 597 find_bsp_sun4u(phandle_t node, uint32_t bspid) argument 603 for (; node > 0; node = OF_peer(node)) { 604 child = OF_child(node); 610 if (OF_getprop(node, "device_type", type, 615 if (OF_getprop(node, cpu_cpuid_prop_sun4u(), &cpuid, 619 return (node); 705 panic("%s: no node for bootcpu?!?!", __func__);
|
/illumos-gate/usr/src/lib/libshare/common/ |
H A D | libsharecore.c | 765 xmlNodePtr node; local 767 node = xmlNewChild(root, NULL, (xmlChar *)"error", (xmlChar *)line); 768 if (node != NULL) 769 (void) xmlSetProp(node, (xmlChar *)"type", (xmlChar *)err); 822 * config tree. Need to have a parent as well as the node to parse 864 xmlNodePtr node = (xmlNodePtr)share; local 869 if (node != NULL) { 870 parent = node->parent; 871 name = (char *)xmlGetProp(node, (xmlChar *)"path"); 883 node 1561 xmlNodePtr node; local [all...] |
H A D | libshare.c | 317 xmlNodePtr node = (xmlNodePtr)group; local 320 while (node != NULL) { 321 if (strcmp((char *)(node->name), "sharecfg") == 0) { 323 handle = (sa_handle_t)get_handle_for_root(node); 326 node = node->parent; 342 xmlNodePtr node; local 351 for (node = root->xmlChildrenNode; node != NULL; 352 node 693 xmlNodePtr node = (xmlNodePtr)object; local 1124 find_group_by_name(xmlNodePtr node, xmlChar *group) argument 1156 xmlNodePtr node = NULL; local 1219 xmlNodePtr node = NULL; local 1261 xmlNodePtr node = NULL; local 1282 _sa_get_child_node(xmlNodePtr node, xmlChar *type) argument 1474 xmlNodePtr node = NULL; local 1549 xmlNodePtr node = NULL; local 1831 xmlNodePtr node = NULL; local 1856 xmlNodePtr node = NULL; local 1881 xmlNodePtr node = NULL; local 1906 xmlNodePtr node = NULL; local 2066 xmlNodePtr node = (xmlNodePtr)nodehdl; local 2085 xmlNodePtr node = (xmlNodePtr)nodehdl; local 2186 xmlNodePtr node; local 2312 xmlNodePtr node; local 2347 xmlNodePtr node; local 2370 xmlNodePtr node; local 2421 xmlNodePtr node; local 2442 xmlNodePtr node = (xmlNodePtr)optionset; local 2486 xmlNodePtr node; local 2506 xmlNodePtr node; local 2572 xmlNodePtr node; local 2709 xmlNodePtr node = NULL; local 2726 xmlNodePtr node = NULL; local 3020 is_nodetype(void *node, char *type) argument 3194 xmlNodePtr node; local 3223 xmlNodePtr node; local 3436 xmlNodePtr node = (xmlNodePtr)propset; local 3486 xmlNodePtr node; local 3531 xmlNodePtr node = (xmlNodePtr)propset; local 3574 xmlNodePtr node; local 3637 xmlNodePtr node; local 3655 xmlNodePtr node; local 3673 xmlNodePtr node = NULL; local 3715 xmlNodePtr node = NULL; local 3766 xmlNodePtr node; local 4338 xmlNodePtr node; local 4390 xmlNodePtr node; local [all...] |
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_import.c | 120 * Will allocate space for new node and copy args into new space. 122 * Returns pointer to new node. 197 * node, doing the appropriate old-tail-next-pointer bookkeeping. 225 * Will allocate space for new node and copy args into new space. 227 * Returns pointer to new node. 261 * node, doing the appropriate old-tail-next-pointer bookkeeping. 286 * Returns a pointer to the did_list node if a match was 997 * Will allocate space for new node AND populate it by extracting disks with 1000 * Returns pointer to new node. 1057 * Iterator to walk the minor node tre 1061 add_disk_names(di_node_t node, di_minor_t minor, void *args) argument [all...] |
H A D | meta_set.c | 125 * Only get sidenames for this node since 127 * the local mddb for a multi-node diskset. 267 char *node = NULL; local 276 node = mynode(); 278 assert(node != NULL); 280 sideno = getnodeside(node, sd); 285 return (mddserror(ep, MDE_DS_HOSTNOSIDE, sp->setno, node, NULL, node)); 304 * Returned record could be for a multi-node set or a 305 * non-multi-node se [all...] |
/illumos-gate/usr/src/lib/cfgadm_plugins/shp/common/ |
H A D | shp.c | 282 * Return the corresponding hp node for a given ap_id, it is the caller's 290 hp_node_t node; local 324 if ((node = hp_init(rpath, cp, 0)) == NULL) { 338 *nodep = node; 353 error_sizeup_cb(hp_node_t node, void *arg) argument 359 if (hp_type(node) != HP_NODE_USAGE) 365 len = strlen(hp_name(node)); 370 len = strlen(hp_usage(node)); 387 error_sumup_cb(hp_node_t node, void *arg) argument 394 if (hp_type(node) ! 409 pci_rcm_info_table(hp_node_t node, char **table) argument 622 hp_node_t node; local 791 hp_node_t node; local 890 hp_node_t node; local 1343 cfga_get_condition(hp_node_t node, ap_condition_t *cond) argument 1384 hp_node_t node; local [all...] |
/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | io.c | 120 getaddrinfo(const char* node, const char* service, const struct addrinfo* hint, struct addrinfo **addr) argument 130 if (!(hp = gethostbyname(node)) || hp->h_addrtype!=AF_INET || hp->h_length>sizeof(struct in_addr))
|
H A D | macro.c | 981 struct comnod node; local 983 memset(&node,0,sizeof(node)); 985 tp = (Shnode_t*)&node;
|
H A D | name.c | 296 Namval_t node; local 513 memcpy(&node,L_ARGNOD,sizeof(node)); 526 L_ARGNOD->nvalue.nrp = node.nvalue.nrp; 527 L_ARGNOD->nvflag = node.nvflag; 528 L_ARGNOD->nvfun = node.nvfun; 610 L_ARGNOD->nvalue.nrp = node.nvalue.nrp; 611 L_ARGNOD->nvflag = node.nvflag; 612 L_ARGNOD->nvfun = node.nvfun; 1068 * delete the node <n [all...] |
H A D | xec.c | 75 Namval_t *node; member in struct:funenv 611 static int set_instance(Shell_t *shp,Namval_t *nq, Namval_t *node, struct Namref *nr) argument 626 memcpy(node,L_ARGNOD,sizeof(*node)); 639 static void unset_instance(Namval_t *nq, Namval_t *node, struct Namref *nr,long mode) argument 641 L_ARGNOD->nvalue.nrp = node->nvalue.nrp; 642 L_ARGNOD->nvflag = node->nvflag; 643 L_ARGNOD->nvfun = node->nvfun; 1094 Namval_t node; local 1126 mode = set_instance(shp,nq,&node, 2756 Namval_t node; local [all...] |
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devfsinfo.c | 52 /* alias node searching return values */ 64 #define OBP_NO_ALIAS_NODE 0x8 /* No alias node */ 1204 check_logical_dev(const char *node, const struct stat *node_stat, int flags, argument 1218 if ((link_buf_len = readlink(node, (void *)link_buf, MAXPATHLEN)) 1243 if ((dev->name = strdup(node)) == NULL) { 1434 /* strip off any minor node info at the end of the path */ 1622 * If there is no alias node, or there are no aliases that correspond 1755 * search the aliases node by definition - compile a list of 2131 * device pathname associated with it in the /aliases node. 2225 * search a prom node fo [all...] |
/illumos-gate/usr/src/lib/libdscfg/common/ |
H A D | cfg.c | 328 (void) fprintf(stderr, "cfg_filter_node: node=%s:%d cnode=%s:%d\n", 2300 * may reside in the block cache on one node, but has not 2874 * set or clear the cluster node filter for get/put 2878 cfg_resource(CFGFILE *cfg, const char *node) argument 2889 "cfg_resource: changing node from %s to %s\n", 2890 cfg->cf_node, (node?node:"NULL")); 2898 * node, but has no valid value 2900 if ((node) && (node[ [all...] |
/illumos-gate/usr/src/lib/libfru/libfru/ |
H A D | libfru.cc | 451 get_seg_list_from_ds(fru_nodehdl_t node, fru_strlist_t *list) argument 460 RETRY(err = data_source->get_seg_list(NODEHDL_TO_TREEHDL(node), 475 if (segment_is_encrypted(node, raw_list.strs[i])) { 642 * Apply process_node() to each node in the tree rooted at "node". 645 * "node" passed to fru_walk_tree()), and name of the node to which it is 649 * non-null, end_node() is called after the node and its children have been 650 * processed, but before the node's siblings are visited. 653 fru_walk_tree(fru_nodehdl_t node, cons argument [all...] |
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | svc.c | 223 _svc_attribute_new_id(_svc_user_fd_node *node) argument 226 assert(node != NULL); 253 node->id = (svc_input_id_t)selected_index; 256 user_fd_mgt_array[selected_index].data.fd_node = node; 276 _svc_user_fd_node *node; local 285 node = svc_userfds[fd].list; 293 while ((svc_userfds[fd].mask != 0) && (node != NULL)) { 295 * If one of the received events maps the ones the node listens 298 _svc_user_fd_node *next = node->lnk.next; 300 if (node 355 _svc_user_fd_node *node; local 501 _svc_user_fd_node* node; local [all...] |
/illumos-gate/usr/src/lib/libpool/common/ |
H A D | pool_xml.c | 150 static int create_shadow(xmlNodePtr node); 156 static int get_fast_dtype(xmlNodePtr node, xmlChar *name); 205 static int pool_xml_elem_wrap(xmlNodePtr node, pool_elem_class_t class, 236 static pool_value_class_t pool_xml_get_attr(xmlNodePtr node, xmlChar *name, 238 int pool_xml_set_attr(xmlNodePtr node, xmlChar *name, 240 static pool_value_class_t pool_xml_get_prop(xmlNodePtr node, xmlChar *name, 242 int pool_xml_set_prop(xmlNodePtr node, xmlChar *name, 285 get_unique_id(xmlNodePtr node, char *id) argument 289 if (node->doc->_private) { 291 pool_conf_to_elem((pool_conf_t *)node 315 xmlNodePtr node; local 334 xmlNodePtr node = node_create(parent, name); local 578 pool_xml_get_attr(xmlNodePtr node, xmlChar *name, pool_value_t *value) argument 649 pool_xml_set_attr(xmlNodePtr node, xmlChar *name, const pool_value_t *value) argument 723 pool_xml_get_prop(xmlNodePtr node, xmlChar *name, pool_value_t *value) argument 822 pool_xml_set_prop(xmlNodePtr node, xmlChar *name, const pool_value_t *value) argument 1074 create_shadow(xmlNodePtr node) argument 1363 pool_xml_elem_wrap(xmlNodePtr node, pool_elem_class_t class, pool_resource_elem_class_t res_class, pool_component_elem_class_t comp_class) argument 2635 get_fast_dtype(xmlNodePtr node, xmlChar *name) argument [all...] |
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/montecarlo/common/ |
H A D | montecarlo.c | 310 static int mc_get_cpu_freq(Prom_node *node); 311 static int mc_get_ecache_size(Prom_node *node); 331 di_node_t node, di_prop_t (*nxtprop)()); 1164 * gather information about this node, returns appropriate code. 1172 dump_devs(di_node_t node, void *arg) argument 1176 driver_name = di_driver_name(node); 1178 if ((di_instance(node) >= 0) && 1180 (!(di_state(node) & DI_DRIVER_DETACHED))) { 1182 gpio_instances[gpio_count] = di_instance(node); 1185 sd_instances[sd_count] = di_instance(node); 1204 dump_prop_list(char *name, di_node_t node, di_prop_t (*nxtprop)()) argument 2100 analyze_pcipci_siblings(di_node_t node) argument [all...] |
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/serengeti/common/ |
H A D | serengeti.c | 154 static boolean_t cpu_node_configured(char *const node); 238 * each schizo and xmits node found. 248 * If "enum-impl" property exists in pci node => cPCI. 279 * Get slot-name properties from parent node and 305 * Search for Children of this node ie. Cards. 352 * looking at a pci-bridge node. This flag gets reset 361 * node to see if it was also a pci-bridge. We do not 363 * xmits device as a pci-bridge node. This will mess 404 * pci_bridge node found above. 416 * We compare this cards parent node wit 957 cpu_node_configured(char *const node) argument [all...] |
/illumos-gate/usr/src/lib/libkmf/libkmf/common/ |
H A D | generalop.c | 205 KMF_PLUGIN_LIST *node; local 212 node = handle->plugins; 215 while (node != NULL && node->plugin->type != kstype) 216 node = node->next; 218 if (node != NULL) 219 return (node->plugin);
|
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_nss/common/ |
H A D | nss_spi.c | 436 CERTCertListNode *node; local 459 node = CERT_LIST_HEAD(list); 460 while (!CERT_LIST_END(node, list)) { 467 der.Data = node->cert->derIssuer.data; 468 der.Length = node->cert->derIssuer.len; 481 der.Data = node->cert->derSubject.data; 482 der.Length = node->cert->derSubject.len; 497 sernum = &node->cert->serialNumber; 512 ret = CERT_CertTimesValid(node->cert); 520 ret = CERT_CertTimesValid(node 551 CERTCertListNode *node; local 751 CERTCertListNode *node; local 1775 CERTCertListNode* node = NULL; local [all...] |
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_list.c | 71 /* define for fcp pseudo node */ 77 static int stat_fc_dev(di_node_t node, void *arg); 78 static int stat_FCP_dev(di_node_t node, void *arg); 81 static int get_xport_state(di_node_t node, void *arg); 83 static fpcfga_ret_t do_stat_fc_dev(const di_node_t node, const char *nodepath, 85 static fpcfga_ret_t do_stat_FCP_dev(const di_node_t node, const char *nodepath, 89 static void get_hw_info(di_node_t node, cfga_list_data_t *clp); 285 * if path is null that guatantees the node is not 286 * configured. if node is detached the path 327 * path indicates if the node exist 1187 stat_fc_dev(di_node_t node, void *arg) argument 1336 stat_FCP_dev(di_node_t node, void *arg) argument 1541 get_xport_state(di_node_t node, void *arg) argument 1566 do_stat_fc_dev( const di_node_t node, const char *nodepath, fpcfga_list_t *lap, int limited_stat) argument 2453 do_stat_FCP_dev( const di_node_t node, const char *nodepath, fpcfga_list_t *lap, int limited_stat) argument 3309 get_hw_info(di_node_t node, cfga_list_data_t *clp) argument 3371 get_device_type(di_node_t node) argument [all...] |
/illumos-gate/usr/src/cmd/nscd/ |
H A D | cache.c | 581 (void) fprintf(stdout, "avl node[%d]:\n", i++); 2079 nsc_entry_t find_entry, *node; local 2164 node = nscdb->qhead; 2165 while (node != NULL && node != *entry) { 2166 if (node->stats.status == ST_DISCARD || 2167 !(node->stats.status & ST_PENDING)) { 2168 delete_entry(nscdb, ctx, node); 2171 node = node 2256 nsc_entry_t *node, *next_node; local [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/cherrystone/psvcpolicy/ |
H A D | psvcpolicy.c | 225 * Create an I2C device node. 247 /* create the device node */ 255 syslog(LOG_ERR, "PSVC: create_i2c_node: Device node created: (%s)", 267 * Delete an I2C device node given the device path. 285 syslog(LOG_ERR, "Device node deleted: (%s)", nd); 769 /* Convert name to node and parent path */ 800 * Add the devinfo tree node entry for the pcf8574 and seeprom 822 * the i2c node (above). 1421 * to the qlc node therefore readlink() is 1471 di_node_t node; local [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/psvc/psvcplugin/ |
H A D | psvcplugin.c | 132 #define NODE_NOT_FOUND_MSG gettext("%s: Can't determine node of %s\n") 304 picl_nodehdl_t node; member in struct:__anon1192 360 psvcplugin_lookup(char *name, char *parent, picl_nodehdl_t *node) argument 367 *node = psvc_paths[i].child_node; 908 * Create a property and add it to the specified node. 912 static int32_t node_property(picl_nodehdl_t node, argument 939 err = ptree_add_prop(node, prophdl); 1162 if (ptree_get_propval_by_name(aobjp->node, assoc_name, 1175 err = node_property(aobjp->node, NULL, NULL, 1218 err = ptree_get_propval_by_name(dobjp->node, [all...] |
/illumos-gate/usr/src/cmd/prtconf/ |
H A D | pdevinfo.c | 255 di_node_t target_node, node; local 265 /* mark the target node so we display it */ 270 * mark the ancestors of this node so we display 273 node = target_node; 274 while (node = di_parent_node(node)) 275 node_display_set(node); 282 * depth of the target node in the tree. we do 285 * target node starts with an indentation of zero. 287 node 320 i_find_target_node(di_node_t node, void *arg) argument 374 node_display(di_node_t node) argument 381 node_display_set(di_node_t node) argument 544 dump_prop_list(const dumpops_t *dumpops, const char *name, int ilev, void *node, dev_t dev, int *compat_printed) argument 714 di_node_t node; local 729 dump_devs(di_node_t node, void *arg) argument 1041 dump_pathing_data(int ilev, di_node_t node) argument 1155 create_minor_list(di_node_t node) argument 1243 di_node_t node = DI_NODE_NIL; local 1308 dump_minor_link_data(int ilev, di_node_t node, dev_t devt, di_devlink_handle_t devlink_hdl) argument 1364 dump_minor_data(int ilev, di_node_t node, di_devlink_handle_t devlink_hdl) argument 1483 dump_link_data(int ilev, di_node_t node, di_devlink_handle_t devlink_hdl) argument 1840 get_propval_by_name(di_prom_handle_t promh, di_node_t node, const char *name, uchar_t **valp) argument 1857 dump_prodinfo(di_prom_handle_t promh, di_node_t node, const char **propstr, char *node_name, int num) argument 1905 dump_compatible(char *name, int ilev, di_node_t node) argument 1950 dump_pciid(char *name, int ilev, di_node_t node, pcidb_hdl_t *pci) argument [all...] |