/titanic_50/usr/src/lib/libdevinfo/ |
H A D | devinfo_devlink.c | 128 struct di_devlink_handle *hdp; in di_devlink_open() local 136 if ((hdp = handle_alloc(root_dir, OPEN_RDWR)) == NULL) { in di_devlink_open() 140 err = open_db(hdp, OPEN_RDONLY); in di_devlink_open() 150 get_db_path(hdp, DB_FILE, path, sizeof (path)); in di_devlink_open() 156 handle_free(&hdp); /* also closes the DB */ in di_devlink_open() 161 if (cache_alloc(hdp) != 0) { in di_devlink_open() 162 handle_free(&hdp); in di_devlink_open() 174 (void) di_devlink_close(&hdp, 0); in di_devlink_open() 183 return (hdp); in di_devlink_open() 187 CACHE(hdp)->update_count = DB_HDR(hdp)->update_count; in di_devlink_open() [all …]
|
H A D | devinfo_devlink.h | 288 static int cache_alloc(struct di_devlink_handle *hdp); 289 static int open_db(struct di_devlink_handle *hdp, int flags); 290 static int invalid_db(struct di_devlink_handle *hdp, size_t fsize, long pg_sz); 291 static int read_nodes(struct di_devlink_handle *hdp, cache_node_t *pcnp, 293 static int read_minors(struct di_devlink_handle *hdp, cache_node_t *pcnp, 295 static int read_links(struct di_devlink_handle *hdp, cache_minor_t *pcmp, 297 static int init_hdr(struct di_devlink_handle *hdp, long page_sz, 299 static size_t size_db(struct di_devlink_handle *hdp, long page_sz, 301 static size_t seg_size(struct di_devlink_handle *hdp, int seg); 303 static cache_node_t *node_insert(struct di_devlink_handle *hdp, [all …]
|
H A D | libdevinfo.h | 468 extern int di_devlink_rm_link(di_devlink_handle_t hdp, const char *link); 469 extern int di_devlink_add_link(di_devlink_handle_t hdp, const char *link, 471 extern int di_devlink_update(di_devlink_handle_t hdp); 474 extern int di_devlink_cache_walk(di_devlink_handle_t hdp, const char *re,
|
/titanic_50/usr/src/uts/common/fs/hsfs/ |
H A D | hsfs_rrip.c | 105 sig_args_p->hdp->r_dev = makedevice(major_dev, minor_dev); in rrip_dev_nodes() 123 struct hs_direntry *hdp = sig_args_p->hdp; in rrip_file_attr() local 125 hdp->mode = RRIP_MODE(px_ptr); in rrip_file_attr() 126 hdp->nlink = RRIP_NLINK(px_ptr); in rrip_file_attr() 127 hdp->uid = RRIP_UID(px_ptr); in rrip_file_attr() 128 hdp->gid = RRIP_GID(px_ptr); in rrip_file_attr() 131 hdp->inode = (ino64_t)RRIP_INO(px_ptr); in rrip_file_attr() 133 hdp->inode = 0; in rrip_file_attr() 135 hdp->type = IFTOVT(hdp->mode); in rrip_file_attr() 178 &sig_args_p->hdp->adate); in rrip_file_time() [all …]
|
H A D | hsfs_node.c | 926 struct hs_direntry *hdp, in hs_parsedir() argument 939 hdp->ext_lbn = HDE_EXT_LBN(dirp); in hs_parsedir() 940 hdp->ext_size = HDE_EXT_SIZE(dirp); in hs_parsedir() 941 hdp->xar_len = HDE_XAR_LEN(dirp); in hs_parsedir() 942 hdp->intlf_sz = HDE_INTRLV_SIZE(dirp); in hs_parsedir() 943 hdp->intlf_sk = HDE_INTRLV_SKIP(dirp); in hs_parsedir() 944 hdp->sym_link = (char *)NULL; in hs_parsedir() 948 hs_parse_dirdate(HDE_cdate(dirp), &hdp->cdate); in hs_parsedir() 949 hs_parse_dirdate(HDE_cdate(dirp), &hdp->adate); in hs_parsedir() 950 hs_parse_dirdate(HDE_cdate(dirp), &hdp->mdate); in hs_parsedir() [all …]
|
H A D | hsfs_susp_subr.c | 88 struct hs_direntry *hdp, /* loc to store dir info */ in parse_sua() argument 134 sig_args.hdp = hdp; in parse_sua() 361 hs_check_root_dirent(struct vnode *vp, struct hs_direntry *hdp) in hs_check_root_dirent() argument 382 secno = LBN_TO_SEC(hdp->ext_lbn+hdp->xar_len, vp->v_vfsp); in hs_check_root_dirent() 383 secoff = LBN_TO_BYTE(hdp->ext_lbn+hdp->xar_len, vp->v_vfsp) & in hs_check_root_dirent() 398 if (hdp->ext_lbn != HDE_EXT_LBN(root_ptr)) { in hs_check_root_dirent() 445 if (hs_parsedir(fsp, root_ptr, hdp, (char *)NULL, (int *)NULL, in hs_check_root_dirent() 447 (void) hs_parsedir(fsp, root_ptr, hdp, (char *)NULL, in hs_check_root_dirent()
|
/titanic_50/usr/src/uts/sun4u/io/ |
H A D | sbd_cpu.c | 240 sbdp_handle_t *hdp; in sbd_cpu_flags() local 244 hdp = sbd_get_sbdp_handle(sbp, hp); in sbd_cpu_flags() 332 sbd_release_sbdp_handle(hdp); in sbd_cpu_flags() 348 sbdp_handle_t *hdp; in sbd_pre_release_cpu() local 350 hdp = sbd_get_sbdp_handle(sbp, hp); in sbd_pre_release_cpu() 359 cpuid = sbdp_get_cpuid(hdp, dip); in sbd_pre_release_cpu() 367 SBD_GET_PERR(hdp->h_err, SBD_HD2ERR(hp)); in sbd_pre_release_cpu() 373 unit = sbdp_get_unit_num(hdp, dip); in sbd_pre_release_cpu() 381 SBD_GET_PERR(hdp->h_err, SBD_HD2ERR(hp)); in sbd_pre_release_cpu() 414 if (sbdp_release_component(hdp, dip)) { in sbd_pre_release_cpu() [all …]
|
H A D | sbd_mem.c | 82 sbdp_handle_t *hdp; in sbd_get_memlist() local 111 hdp = sbd_get_sbdp_handle(sbp, hp); in sbd_get_memlist() 112 mlist = sbdp_get_memlist(hdp, mp->sbm_cm.sbdev_dip); in sbd_get_memlist() 114 SBD_GET_PERR(hdp->h_err, ep); in sbd_get_memlist() 119 sbd_release_sbdp_handle(hdp); in sbd_get_memlist() 122 sbd_release_sbdp_handle(hdp); in sbd_get_memlist() 141 sbdp_handle_t *hdp; in sbd_pre_attach_mem() local 147 hdp = sbd_get_sbdp_handle(sbp, hp); in sbd_pre_attach_mem() 160 unit = sbdp_get_unit_num(hdp, dip); in sbd_pre_attach_mem() 165 SBD_GET_PERR(hdp->h_err, ep); in sbd_pre_attach_mem() [all …]
|
H A D | sbd.c | 757 sbdp_handle_t *hdp; in sbd_exec_op() local 768 hdp = sbd_get_sbdp_handle(sbp, hp); in sbd_exec_op() 769 rv = sbdp_ioctl(hdp, iap); in sbd_exec_op() 771 SBD_GET_PERR(hdp->h_err, SBD_HD2ERR(hp)); in sbd_exec_op() 774 sbd_release_sbdp_handle(hdp); in sbd_exec_op() 855 sbdp_handle_t *hdp; in sbd_dev_configure() local 861 hdp = sbd_get_sbdp_handle(sbp, hp); in sbd_dev_configure() 882 unit = sbdp_get_unit_num(hdp, dip); in sbd_dev_configure() 884 SBD_GET_PERR(hdp->h_err, SBD_HD2ERR(hp)); in sbd_dev_configure() 894 sbd_release_sbdp_handle(hdp); in sbd_dev_configure() [all …]
|
H A D | sbd_io.c | 187 sbdp_handle_t *hdp; in sbd_io_status() local 198 hdp = sbd_get_sbdp_handle(sbp, hp); in sbd_io_status() 238 isp->is_unit = sbdp_get_unit_num(hdp, dip); in sbd_io_status() 243 SBD_GET_PERR(hdp->h_err, SBD_HD2ERR(hp)); in sbd_io_status() 290 sbd_release_sbdp_handle(hdp); in sbd_io_status()
|
/titanic_50/usr/src/stand/lib/fs/hsfs/ |
H A D | hsfsops.c | 739 struct hs_direntry *hdp = &hsdep->hs_dir; in parse_dir() local 750 hdp->ext_lbn = IDE_EXT_LBN(bufp); in parse_dir() 751 hdp->ext_size = IDE_EXT_SIZE(bufp); in parse_dir() 752 hs_dodates(HS_VOL_TYPE_ISO, hdp, bufp); in parse_dir() 753 hdp->xar_len = IDE_XAR_LEN(bufp); in parse_dir() 754 hdp->intlf_sz = IDE_INTRLV_SIZE(bufp); in parse_dir() 755 hdp->intlf_sk = IDE_INTRLV_SKIP(bufp); in parse_dir() 756 hdp->sym_link = NULL; in parse_dir() 758 udp->d_ino = hdp->ext_lbn; in parse_dir() 762 hdp->type = VREG; in parse_dir() [all …]
|
/titanic_50/usr/src/common/fs/ |
H A D | hsfs.c | 645 struct hs_direntry *hdp = &hsdep->hs_dir; /* hsfs-style dir info */ in parse_dir() local 659 hdp->ext_lbn = IDE_EXT_LBN(bufp); in parse_dir() 660 hdp->ext_size = IDE_EXT_SIZE(bufp); in parse_dir() 661 hdp->xar_len = IDE_XAR_LEN(bufp); in parse_dir() 662 hdp->intlf_sz = IDE_INTRLV_SIZE(bufp); in parse_dir() 663 hdp->intlf_sk = IDE_INTRLV_SKIP(bufp); in parse_dir() 664 hdp->sym_link = NULL; in parse_dir() 667 udp->d_ino = hdp->ext_lbn; in parse_dir() 671 hdp->type = VREG; in parse_dir() 672 hdp->mode = IFREG; in parse_dir() [all …]
|
/titanic_50/usr/src/lib/libdscfg/common/ |
H A D | cfg_cluster.c | 508 hash_data_t *hdp; in init_sc_entry() local 571 hdp = (hash_data_t *)malloc(sizeof (hash_data_t)); in init_sc_entry() 572 hdp->scstat_node_name = strdup(dsn->scstat_node_name); in init_sc_entry() 573 nsc_insert_node(schash, hdp, dsp->scstat_ds_name); in init_sc_entry()
|
/titanic_50/usr/src/cmd/geniconvtbl/ |
H A D | itmcomp.c | 856 char *hdp; in data_to_hexadecimal() local 869 hdp = ptr[index]; in data_to_hexadecimal() 880 *hdp = '0' + val; in data_to_hexadecimal() 882 *hdp = 'a' + val - 10; in data_to_hexadecimal() 884 hdp++; in data_to_hexadecimal() 888 *hdp = '0' + val; in data_to_hexadecimal() 890 *hdp = 'a' + val - 10; in data_to_hexadecimal() 892 hdp++; in data_to_hexadecimal() 894 *hdp = '\0'; in data_to_hexadecimal()
|
/titanic_50/usr/src/uts/common/sys/fs/ |
H A D | hsfs_impl.h | 62 struct hs_direntry *hdp, char *dnp, int *dnlen, int last_offset); 69 extern void hs_filldirent(struct vnode *vp, struct hs_direntry *hdp);
|
H A D | hsfs_rrip.h | 300 extern void hs_check_root_dirent(struct vnode *vp, struct hs_direntry *hdp); 303 struct hsfs *fsp, struct hs_direntry *hdp);
|
H A D | hsfs_susp.h | 231 struct hs_direntry *hdp; /* directory entry */ member
|
/titanic_50/usr/src/uts/common/fs/pcfs/ |
H A D | pc_node.c | 70 struct pchead *hdp, *hfp; in pc_init() local 73 hdp = &pcdhead[i]; in pc_init() 75 hdp->pch_forw = (struct pcnode *)hdp; in pc_init() 76 hdp->pch_back = (struct pcnode *)hdp; in pc_init()
|
/titanic_50/usr/src/stand/lib/fs/common/ |
H A D | cache.c | 602 static head_t *hdp[] = { &ic_head, &dc_head, &bc_head, 0}; in print_cache_data() local 611 head_t *hp = hdp[j]; in print_cache_data()
|
/titanic_50/usr/src/lib/librcm/ |
H A D | librcm.c | 53 rcm_alloc_handle(char *modname, uint_t flag, void *arg, rcm_handle_t **hdp) in rcm_alloc_handle() argument 59 if ((hdp == NULL) || (flag & ~RCM_ALLOC_HDL_MASK)) { in rcm_alloc_handle() 98 *hdp = hd; in rcm_alloc_handle()
|
/titanic_50/usr/src/cmd/acct/ |
H A D | acctcms.c | 746 char hdp[] = variable 754 if( pflg && oflg ) printf(hdp); in outputa()
|