/titanic_44/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_vxvm.c | 260 void *lh; in init_vxvm() local 262 if ((lh = dlopen(VXVM_LIB_NAME, RTLD_NOW)) == NULL) { in init_vxvm() 266 if ((vxdl_libvxvm_get_version = (int (*)(int))dlsym(lh, in init_vxvm() 268 (void) dlclose(lh); in init_vxvm() 272 if ((vxdl_libvxvm_get_conf = (int (*)(int))dlsym(lh, in init_vxvm() 274 (void) dlclose(lh); in init_vxvm() 278 if ((vxdl_libvxvm_get_dgs = (int (*)(int, vm_name_t []))dlsym(lh, in init_vxvm() 280 (void) dlclose(lh); in init_vxvm() 285 dlsym(lh, "libvxvm_get_disks")) == NULL) { in init_vxvm() 286 (void) dlclose(lh); in init_vxvm() [all …]
|
H A D | inuse_zpool.c | 147 void *lh = NULL; in init_zpool() local 149 if ((lh = dlopen("libzfs.so", RTLD_NOW)) == NULL) { in init_zpool() 150 return (lh); in init_zpool() 158 dlsym(lh, "libzfs_init")) == NULL || in init_zpool() 161 dlsym(lh, "zpool_in_use")) == NULL) { in init_zpool() 162 (void) dlclose(lh); in init_zpool() 167 (void) dlclose(lh); in init_zpool() 171 return (lh); in init_zpool()
|
/titanic_44/usr/src/stand/lib/fs/ufs/ |
H A D | lufsboot.c | 195 #define inslist(lh, l) if ((*(lh))) { \ argument 196 (*(lh))->l_prev->l_next = (l); \ 197 (l)->l_next = (*(lh)); \ 198 (l)->l_prev = (*(lh))->l_prev; \ 199 (*(lh))->l_prev = (l); \ 203 (*(lh)) = l; \ 206 #define remlist(lh, l) \ argument 208 if (*(lh) != (l) || (l)->l_prev != (l)) \ 210 *(lh) = (lb_me_t *)NULL; \ 212 if (*(lh) == (l)) \ [all …]
|
/titanic_44/usr/src/uts/common/io/ |
H A D | strplumb.c | 287 getifflags(ldi_handle_t lh, struct lifreq *lifrp) in getifflags() argument 297 return (ldi_ioctl(lh, I_STR, (intptr_t)&iocb, FKIOCTL, CRED(), &rval)); in getifflags() 302 setifname(ldi_handle_t lh, struct lifreq *lifrp) in setifname() argument 312 return (ldi_ioctl(lh, I_STR, (intptr_t)&iocb, FKIOCTL, CRED(), &rval)); in setifname() 318 ldi_handle_t lh = NULL; in strplumb_dev() local 352 &lh, li)) != 0) { in strplumb_dev() 359 if ((err = ldi_ioctl(lh, I_PUSH, (intptr_t)IP, FKIOCTL, CRED(), in strplumb_dev() 365 if ((err = getifflags(lh, &lifr)) != 0) in strplumb_dev() 384 if ((err = setifname(lh, &lifr)) != 0) in strplumb_dev() 388 if ((err = getifflags(lh, &lifr)) != 0) { in strplumb_dev() [all …]
|
H A D | l_strplumb.c | 222 ldi_handle_t lh; in kstr_autopush() local 230 kcred, &lh, li); in kstr_autopush() 238 kcred, &lh, li); in kstr_autopush() 254 error = ldi_ioctl(lh, SAD_GAP, (intptr_t)&push, in kstr_autopush() 259 (void) ldi_close(lh, FREAD|FWRITE, kcred); in kstr_autopush() 290 (void) ldi_close(lh, FREAD|FWRITE, kcred); in kstr_autopush() 300 error = ldi_ioctl(lh, SAD_SAP, (intptr_t)&push, in kstr_autopush() 306 (void) ldi_close(lh, FREAD|FWRITE, kcred); in kstr_autopush() 339 error = ldi_ioctl(lh, SAD_SAP, (intptr_t)&push, in kstr_autopush() 345 (void) ldi_close(lh, FREAD|FWRITE, kcred); in kstr_autopush() [all …]
|
H A D | sundlpi.c | 191 dl_op(ldi_handle_t lh, mblk_t **mpp, t_uscalar_t expprim, size_t minlen, in dl_op() argument 202 (void) ldi_putmsg(lh, mp); in dl_op() 204 switch (err = ldi_getmsg(lh, &mp, tvp)) { in dl_op() 284 dl_attach(ldi_handle_t lh, int ppa, dl_error_ack_t *dleap) in dl_attach() argument 295 err = dl_op(lh, &mp, DL_OK_ACK, DL_OK_ACK_SIZE, dleap, NULL); in dl_attach() 308 dl_bind(ldi_handle_t lh, uint_t sap, dl_error_ack_t *dleap) in dl_bind() argument 326 err = dl_op(lh, &mp, DL_BIND_ACK, DL_BIND_ACK_SIZE, dleap, NULL); in dl_bind() 349 dl_phys_addr(ldi_handle_t lh, uchar_t *physaddr, size_t *physlenp, in dl_phys_addr() argument 372 err = dl_op(lh, &mp, DL_PHYS_ADDR_ACK, DL_PHYS_ADDR_ACK_SIZE, dleap, in dl_phys_addr() 404 dl_info(ldi_handle_t lh, dl_info_ack_t *dliap, uchar_t *physaddr, in dl_info() argument [all …]
|
H A D | consconfig_dacf.c | 460 consconfig_kbd_abort_enable(ldi_handle_t lh) in consconfig_kbd_abort_enable() argument 466 err = ldi_ioctl(lh, CONSSETABORTENABLE, (uintptr_t)B_TRUE, in consconfig_kbd_abort_enable() 480 consconfig_kbd_abort_disable(ldi_handle_t lh) in consconfig_kbd_abort_disable() argument 486 err = ldi_ioctl(lh, CONSSETABORTENABLE, (uintptr_t)B_FALSE, in consconfig_kbd_abort_disable() 546 consconfig_get_polledio(ldi_handle_t lh) in consconfig_get_polledio() argument 565 err = ldi_ioctl(lh, I_STR, (intptr_t)&strioc, FKIOCTL, kcred, &rval); in consconfig_get_polledio() 595 ldi_handle_t lh; in consconfig_setup_polledio() local 601 FREAD|FWRITE|FNOCTTY, kcred, &lh, sp->cons_li) != 0) in consconfig_setup_polledio() 609 polled_io = consconfig_get_polledio(lh); in consconfig_setup_polledio() 618 (void) ldi_close(lh, FREAD|FWRITE, kcred); in consconfig_setup_polledio() [all …]
|
/titanic_44/usr/src/uts/common/sys/ |
H A D | sunldi.h | 125 extern int ldi_prop_lookup_int_array(ldi_handle_t lh, 127 extern int ldi_prop_lookup_int64_array(ldi_handle_t lh, 129 extern int ldi_prop_lookup_string_array(ldi_handle_t lh, 131 extern int ldi_prop_lookup_string(ldi_handle_t lh, 133 extern int ldi_prop_lookup_byte_array(ldi_handle_t lh, 135 extern int ldi_prop_get_int(ldi_handle_t lh, 137 extern int64_t ldi_prop_get_int64(ldi_handle_t lh, 139 extern int ldi_prop_exists(ldi_handle_t lh, 150 extern int ldi_ev_get_cookie(ldi_handle_t lh, char *evname, 153 extern int ldi_ev_register_callbacks(ldi_handle_t lh,
|
/titanic_44/usr/src/grub/grub-0.97/stage2/ |
H A D | boot.c | 48 struct linux_kernel_header *lh; in load_image() local 96 lh = (struct linux_kernel_header *) buffer; in load_image() 219 else if (lh->boot_flag == BOOTSEC_SIGNATURE in load_image() 220 && lh->setup_sects <= LINUX_MAX_SETUP_SECTS) in load_image() 223 int setup_sects = lh->setup_sects; in load_image() 225 if (lh->header == LINUX_MAGIC_SIGNATURE && lh->version >= 0x0200) in load_image() 227 big_linux = (lh->loadflags & LINUX_FLAG_BIG_KERNEL); in load_image() 228 lh->type_of_loader = LINUX_BOOT_LOADER_TYPE; in load_image() 237 if (lh->version >= 0x0201) in load_image() 239 lh->heap_end_ptr = LINUX_HEAP_END_OFFSET; in load_image() [all …]
|
/titanic_44/usr/src/cmd/sed/ |
H A D | compile.c | 874 struct labhash **lhp, *lh; in enterlabel() local 881 for (lh = *lhp; lh != NULL; lh = lh->lh_next) in enterlabel() 882 if (lh->lh_hash == h && strcmp(cp->t, lh->lh_cmd->t) == 0) in enterlabel() 884 if ((lh = malloc(sizeof (*lh))) == NULL) in enterlabel() 886 lh->lh_next = *lhp; in enterlabel() 887 lh->lh_hash = h; in enterlabel() 888 lh->lh_cmd = cp; in enterlabel() 889 lh->lh_ref = 0; in enterlabel() 890 *lhp = lh; in enterlabel() 900 struct labhash *lh; in findlabel() local [all …]
|
/titanic_44/usr/src/uts/common/os/ |
H A D | driver_lyr.c | 119 int ldi_remove_event_handler(ldi_handle_t lh, ldi_callback_id_t id); 1672 ldi_close(ldi_handle_t lh, int flag, cred_t *cr) in ldi_close() argument 1674 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_close() 1681 if (lh == NULL) in ldi_close() 1704 (void) ldi_remove_event_handler(lh, (ldi_callback_id_t)lep); in ldi_close() 1718 LDI_OPENCLOSE((CE_WARN, "%s: lh=0x%p", "ldi close", (void *)lh)); in ldi_close() 1770 ldi_read(ldi_handle_t lh, struct uio *uiop, cred_t *credp) in ldi_read() argument 1772 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_read() 1777 if (lh == NULL) in ldi_read() 1793 ldi_write(ldi_handle_t lh, struct uio *uiop, cred_t *credp) in ldi_write() argument [all …]
|
/titanic_44/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | ldi.c | 310 struct ldi_handle lh; in ldi_handle_print() local 314 if (mdb_vread(&lh, sizeof (struct ldi_handle), addr) == -1) { in ldi_handle_print() 324 mdb_printf("%4u ", lh.lh_ref); in ldi_handle_print() 327 mdb_printf("%0?p ", lh.lh_vp); in ldi_handle_print() 330 addr = (uintptr_t)lh.lh_vp; in ldi_handle_print() 347 if (lh.lh_events != NULL) { in ldi_handle_print() 348 mdb_printf("%0?p ", lh.lh_events); in ldi_handle_print() 355 mdb_printf("%0?p\n", lh.lh_ident); in ldi_handle_print() 360 return (ldi_ident_print((uintptr_t)lh.lh_ident, refs)); in ldi_handle_print()
|
/titanic_44/usr/src/uts/common/io/softmac/ |
H A D | softmac_main.c | 680 ldi_handle_t lh = NULL; in softmac_mac_register() local 705 err = ldi_open_by_dev(&dev, OTYP_CHR, FREAD|FWRITE, kcred, &lh, li); in softmac_mac_register() 707 if (dl_attach(lh, softmac->smac_uppa + 1 * 1000, NULL) == 0) in softmac_mac_register() 709 (void) ldi_close(lh, FREAD|FWRITE, kcred); in softmac_mac_register() 725 if (ldi_open_by_dev(&dev, OTYP_CHR, FREAD|FWRITE, kcred, &lh, in softmac_mac_register() 734 while (ldi_ioctl(lh, I_POP, 0, FKIOCTL, kcred, &rval) == 0) in softmac_mac_register() 738 if ((rval = dl_info(lh, &dlia, NULL, NULL, &dlea)) != 0) { in softmac_mac_register() 745 (void) ldi_close(lh, FREAD|FWRITE, kcred); in softmac_mac_register() 755 (void) ldi_close(lh, FREAD|FWRITE, kcred); in softmac_mac_register() 761 (dl_attach(lh, softmac->smac_uppa, NULL) != 0)) { in softmac_mac_register() [all …]
|
/titanic_44/usr/src/cmd/fs.d/cachefs/cachefswssize/ |
H A D | cachefswssize.c | 63 struct cachefs_log_logfile_header *lh; in main() local 109 lh = stats_log_getheader(sc); in main() 111 if (lh->lh_errno != 0) in main() 113 strerror(lh->lh_errno)); in main() 168 lh->lh_maxbsize / (u_offset_t) 1024)); in main()
|
/titanic_44/usr/src/uts/common/io/mac/ |
H A D | mac_util.c | 584 mac_set_intr(ldi_handle_t lh, processorid_t cpu_num, int oldcpuid, int ino) in mac_set_intr() argument 593 err = ldi_ioctl(lh, PCITOOL_DEVICE_SET_INTR, (intptr_t)&iset, FKIOCTL, in mac_set_intr() 628 mac_get_single_intr(ldi_handle_t lh, int oldcpuid, int ino, in mac_get_single_intr() argument 650 err = ldi_ioctl(lh, PCITOOL_DEVICE_GET_INTR, (intptr_t)iget_p, in mac_get_single_intr() 673 err = ldi_ioctl(lh, PCITOOL_DEVICE_GET_INTR, (intptr_t)iget_p, in mac_get_single_intr() 698 mac_validate_intr(ldi_handle_t lh, mac_dladm_intr_t *dln, processorid_t cpuid) in mac_validate_intr() argument 705 err = ldi_ioctl(lh, PCITOOL_SYSTEM_INTR_INFO, (intptr_t)&intr_info, in mac_validate_intr() 712 if (mac_get_single_intr(lh, oldcpuid, ino, dln)) { in mac_validate_intr() 771 ldi_handle_t lh = NULL; in mac_check_interrupt_binding() local 802 err = ldi_open_by_name(dln.nexus_path, FREAD|FWRITE, kcred, &lh, li); in mac_check_interrupt_binding() [all …]
|
/titanic_44/usr/src/uts/sun4u/excalibur/os/ |
H A D | excalibur.c | 55 ldi_handle_t lh; member 137 FWRITE, kcred, &xcalfans[i].lh, li); in load_platform_drivers() 279 err = ldi_write(xcalfans[i].lh, &uio, kcred); in plat_fan_blast()
|
/titanic_44/usr/src/uts/common/io/comstar/port/iscsit/ |
H A D | iscsit_login.c | 600 iscsi_login_hdr_t *lh; in login_sm_responded() local 605 lh = (iscsi_login_hdr_t *)pdu->isp_hdr; in login_sm_responded() 616 ISCSI_LOGIN_CURRENT_STAGE(lh->flags); in login_sm_responded() 618 ISCSI_LOGIN_NEXT_STAGE(lh->flags); in login_sm_responded() 620 lh->flags & ISCSI_FLAG_LOGIN_TRANSIT; in login_sm_responded() 1803 iscsi_login_hdr_t *lh = (iscsi_login_hdr_t *)pdu->isp_hdr; in login_sm_req_pdu_check() local 1809 csg_req = ISCSI_LOGIN_CURRENT_STAGE(lh->flags); in login_sm_req_pdu_check() 1843 if ((ict->ict_cid != ntohs(lh->cid)) || in login_sm_req_pdu_check() 1844 (bcmp(ict->ict_sess->ist_isid, lh->isid, in login_sm_req_pdu_check() 1854 if ((lh->min_version > ISCSIT_MAX_VERSION) || in login_sm_req_pdu_check() [all …]
|
/titanic_44/usr/src/uts/sun4u/io/ |
H A D | ppm_plat.c | 59 ret = ldi_ioctl(dc->lh, dc->m_un.cpu.iowr, in ppm_cpu_next() 98 ret = ldi_ioctl(dc->lh, in ppm_cpu_pre_chng() 135 ret = ldi_ioctl(dc->lh, dc->m_un.kio.iowr, in ppm_cpu_go() 170 ret = ldi_ioctl(dc->lh, in ppm_cpu_post_chng()
|
/titanic_44/usr/src/cmd/mandoc/ |
H A D | roff.c | 1186 int not, lh, rh; in roff_evalcond() local 1209 if (!roff_getnum(v, pos, &lh)) in roff_evalcond() 1212 if (lh < 0) in roff_evalcond() 1213 lh = 0; in roff_evalcond() 1220 lh = lh >= rh; in roff_evalcond() 1223 lh = lh <= rh; in roff_evalcond() 1226 lh = lh == rh; in roff_evalcond() 1229 lh = lh > rh; in roff_evalcond() 1232 lh = lh < rh; in roff_evalcond() 1239 lh = !lh; in roff_evalcond() [all …]
|
/titanic_44/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/ |
H A D | DoPrinterNS.java | 147 String lh = h.getLocalHostName(); in setNIS() local 148 if (lh.equals(nshost)) { in setNIS() 560 String lh = h.getLocalHostName(); in doAuth() local 562 if (lh.equals(nm)) { in doAuth() 601 String lh = h.getLocalHostName(); in doCheckRootPasswd() local 603 int ret = dorexec(lh, "root", p, "/usr/bin/echo", "C"); in doCheckRootPasswd()
|
H A D | DoPrinterDelete.java | 139 String lh = h.getLocalHostName(); in delete() local 140 if (lh.equals(nshost)) { in delete()
|
/titanic_44/usr/src/uts/common/avs/ns/solaris/ |
H A D | nsc_raw.c | 66 ldi_handle_t lh; /* Solaris layered driver handle */ member 381 OTYP_BLK, FREAD|FWRITE, cred, &cdi->lh, li); in _raw_open() 384 cdi->lh = NULL; in _raw_open() 411 if (cdi->lh) in _raw_open() 412 (void) ldi_close(cdi->lh, FWRITE|FREAD, cred); in _raw_open() 464 rc = ldi_close(cdi->lh, FREAD|FWRITE, cred); in _raw_close()
|
/titanic_44/usr/src/lib/libdtrace/common/ |
H A D | dt_aggregate.c | 733 dt_ahashent_t *lh = *((dt_ahashent_t **)lhs); in dt_aggregate_hashcmp() local 735 dtrace_aggdesc_t *lagg = lh->dtahe_data.dtada_desc; in dt_aggregate_hashcmp() 750 dt_ahashent_t *lh = *((dt_ahashent_t **)lhs); in dt_aggregate_varcmp() local 754 lid = dt_aggregate_aggvarid(lh); in dt_aggregate_varcmp() 769 dt_ahashent_t *lh = *((dt_ahashent_t **)lhs); in dt_aggregate_keycmp() local 771 dtrace_aggdesc_t *lagg = lh->dtahe_data.dtada_desc; in dt_aggregate_keycmp() 795 ldata = lh->dtahe_data.dtada_data + lrec->dtrd_offset; in dt_aggregate_keycmp() 880 dt_ahashent_t *lh = *((dt_ahashent_t **)lhs); in dt_aggregate_valcmp() local 882 dtrace_aggdesc_t *lagg = lh->dtahe_data.dtada_desc; in dt_aggregate_valcmp() 884 caddr_t ldata = lh->dtahe_data.dtada_data; in dt_aggregate_valcmp() [all …]
|
/titanic_44/usr/src/uts/common/klm/ |
H A D | nlm_service.c | 324 struct nlm4_holder *lh; in nlm_do_test() local 418 lh = &resp->stat.nlm4_testrply_u.holder; in nlm_do_test() 419 lh->exclusive = (fl.l_type == F_WRLCK); in nlm_do_test() 420 lh->svid = fl.l_pid; in nlm_do_test() 421 lh->oh.n_len = sizeof (*oh); in nlm_do_test() 422 lh->oh.n_bytes = (void *)oh; in nlm_do_test() 423 lh->l_offset = fl.l_start; in nlm_do_test() 424 lh->l_len = fl.l_len; in nlm_do_test()
|
/titanic_44/usr/src/uts/common/fs/nfs/ |
H A D | nfs_dlinet.c | 1530 ldi_handle_t lh; in revarp_myaddr() local 1543 rc = ldi_open_by_name(ndev_path, FREAD|FWRITE, CRED(), &lh, li); in revarp_myaddr() 1551 if (rc = dl_attach(lh, ifunit, NULL)) { in revarp_myaddr() 1553 (void) ldi_close(lh, FREAD|FWRITE, CRED()); in revarp_myaddr() 1557 if (rc = dl_bind(lh, ETHERTYPE_REVARP, NULL)) { in revarp_myaddr() 1559 (void) ldi_close(lh, FREAD|FWRITE, CRED()); in revarp_myaddr() 1563 if (rc = dl_info(lh, &info, NULL, NULL, NULL)) { in revarp_myaddr() 1565 (void) ldi_close(lh, FREAD|FWRITE, CRED()); in revarp_myaddr() 1573 revarp_start(lh, &myaddr); in revarp_myaddr() 1583 (void) ldi_close(lh, FREAD|FWRITE, CRED()); in revarp_myaddr() [all …]
|