/illumos-gate/usr/src/boot/i386/libi386/ |
H A D | linux.c | 94 struct linux_kernel_header lh; in linux_loadkernel() local 121 n = read(fd, &lh, sizeof (lh)); in linux_loadkernel() 122 if (n != sizeof (lh)) { in linux_loadkernel() 128 if (lh.boot_flag != BOOTSEC_SIGNATURE) { in linux_loadkernel() 134 setup_sects = lh.setup_sects; in linux_loadkernel() 152 if (lh.header == LINUX_MAGIC_SIGNATURE && lh.version >= 0x0200) { in linux_loadkernel() 153 linux_big = lh.loadflags & LINUX_FLAG_BIG_KERNEL; in linux_loadkernel() 154 lh.type_of_loader = LINUX_BOOT_LOADER_TYPE; in linux_loadkernel() 156 if (lh.version >= 0x0206) in linux_loadkernel() 157 max_cmdline_size = lh.cmdline_size + 1; in linux_loadkernel() [all …]
|
/illumos-gate/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 | 145 void *lh = NULL; in init_zpool() local 147 if ((lh = dlopen("libzfs.so", RTLD_NOW)) == NULL) { in init_zpool() 148 return (lh); in init_zpool() 156 dlsym(lh, "libzfs_init")) == NULL || in init_zpool() 159 dlsym(lh, "zpool_in_use")) == NULL) { in init_zpool() 160 (void) dlclose(lh); in init_zpool() 165 (void) dlclose(lh); in init_zpool() 169 return (lh); in init_zpool()
|
/illumos-gate/usr/src/stand/lib/fs/ufs/ |
H A D | lufsboot.c | 193 #define inslist(lh, l) if ((*(lh))) { \ argument 194 (*(lh))->l_prev->l_next = (l); \ 195 (l)->l_next = (*(lh)); \ 196 (l)->l_prev = (*(lh))->l_prev; \ 197 (*(lh))->l_prev = (l); \ 201 (*(lh)) = l; \ 204 #define remlist(lh, l) \ argument 206 if (*(lh) != (l) || (l)->l_prev != (l)) \ 208 *(lh) = (lb_me_t *)NULL; \ 210 if (*(lh) == (l)) \ [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | strplumb.c | 299 getifflags(ldi_handle_t lh, struct lifreq *lifrp) in getifflags() argument 309 return (ldi_ioctl(lh, I_STR, (intptr_t)&iocb, FKIOCTL, CRED(), &rval)); in getifflags() 314 setifname(ldi_handle_t lh, struct lifreq *lifrp) in setifname() argument 324 return (ldi_ioctl(lh, I_STR, (intptr_t)&iocb, FKIOCTL, CRED(), &rval)); in setifname() 330 ldi_handle_t lh = NULL; in strplumb_dev() local 364 &lh, li)) != 0) { in strplumb_dev() 371 if ((err = ldi_ioctl(lh, I_PUSH, (intptr_t)IP, FKIOCTL, CRED(), in strplumb_dev() 377 if ((err = getifflags(lh, &lifr)) != 0) in strplumb_dev() 396 if ((err = setifname(lh, &lifr)) != 0) in strplumb_dev() 400 if ((err = getifflags(lh, &lifr)) != 0) { in strplumb_dev() [all …]
|
H A D | l_strplumb.c | 220 ldi_handle_t lh; in kstr_autopush() local 228 kcred, &lh, li); in kstr_autopush() 236 kcred, &lh, li); in kstr_autopush() 252 error = ldi_ioctl(lh, SAD_GAP, (intptr_t)&push, in kstr_autopush() 257 (void) ldi_close(lh, FREAD|FWRITE, kcred); in kstr_autopush() 288 (void) ldi_close(lh, FREAD|FWRITE, kcred); in kstr_autopush() 298 error = ldi_ioctl(lh, SAD_SAP, (intptr_t)&push, in kstr_autopush() 304 (void) ldi_close(lh, FREAD|FWRITE, kcred); in kstr_autopush() 337 error = ldi_ioctl(lh, SAD_SAP, (intptr_t)&push, in kstr_autopush() 343 (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 | 471 consconfig_kbd_abort_enable(ldi_handle_t lh) in consconfig_kbd_abort_enable() argument 477 err = ldi_ioctl(lh, CONSSETABORTENABLE, (uintptr_t)B_TRUE, in consconfig_kbd_abort_enable() 491 consconfig_kbd_abort_disable(ldi_handle_t lh) in consconfig_kbd_abort_disable() argument 497 err = ldi_ioctl(lh, CONSSETABORTENABLE, (uintptr_t)B_FALSE, in consconfig_kbd_abort_disable() 557 consconfig_get_polledio(ldi_handle_t lh) in consconfig_get_polledio() argument 576 err = ldi_ioctl(lh, I_STR, (intptr_t)&strioc, FKIOCTL, kcred, &rval); in consconfig_get_polledio() 606 ldi_handle_t lh; in consconfig_setup_polledio() local 612 FREAD|FWRITE|FNOCTTY, kcred, &lh, sp->cons_li) != 0) in consconfig_setup_polledio() 620 polled_io = consconfig_get_polledio(lh); in consconfig_setup_polledio() 629 (void) ldi_close(lh, FREAD|FWRITE, kcred); in consconfig_setup_polledio() [all …]
|
/illumos-gate/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,
|
/illumos-gate/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 …]
|
/illumos-gate/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); 1689 ldi_close(ldi_handle_t lh, int flag, cred_t *cr) in ldi_close() argument 1691 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_close() 1698 if (lh == NULL) in ldi_close() 1721 (void) ldi_remove_event_handler(lh, (ldi_callback_id_t)lep); in ldi_close() 1735 LDI_OPENCLOSE((CE_WARN, "%s: lh=0x%p", "ldi close", (void *)lh)); in ldi_close() 1787 ldi_read(ldi_handle_t lh, struct uio *uiop, cred_t *credp) in ldi_read() argument 1789 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_read() 1794 if (lh == NULL) in ldi_read() 1810 ldi_write(ldi_handle_t lh, struct uio *uiop, cred_t *credp) in ldi_write() argument [all …]
|
/illumos-gate/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 …]
|
/illumos-gate/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 …]
|
H A D | softmac_capab.c | 75 softmac_fill_capab(ldi_handle_t lh, softmac_t *softmac) in softmac_fill_capab() argument 81 if ((err = dl_capab(lh, &mp)) != 0) in softmac_fill_capab() 98 dl_capab(ldi_handle_t lh, mblk_t **mpp) in dl_capab() argument 114 (void) ldi_putmsg(lh, mp); in dl_capab() 115 if ((err = ldi_getmsg(lh, &mp, (timestruc_t *)NULL)) != 0) in dl_capab()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | ldi.c | 313 struct ldi_handle lh; in ldi_handle_print() local 317 if (mdb_vread(&lh, sizeof (struct ldi_handle), addr) == -1) { in ldi_handle_print() 327 mdb_printf("%4u ", lh.lh_ref); in ldi_handle_print() 330 mdb_printf("%0?p ", lh.lh_vp); in ldi_handle_print() 333 addr = (uintptr_t)lh.lh_vp; in ldi_handle_print() 350 if (lh.lh_events != NULL) { in ldi_handle_print() 351 mdb_printf("%0?p ", lh.lh_events); in ldi_handle_print() 358 mdb_printf("%0?p\n", lh.lh_ident); in ldi_handle_print() 363 return (ldi_ident_print((uintptr_t)lh.lh_ident, refs)); in ldi_handle_print()
|
/illumos-gate/usr/src/test/util-tests/tests/dis/risc-v/ |
H A D | tst.rv32i.s | 40 lh s3, 0x7ff(s1) 41 lh s4, (s1) 42 lh s5, -0x800(s1)
|
H A D | tst.rv32i.out | 10 libdis_test+0x24: 83 99 f4 7f lh s3,0x7ff(s1) 11 libdis_test+0x28: 03 9a 04 00 lh s4,0x0(s1) 12 libdis_test+0x2c: 83 9a 04 80 lh s5,-0x800(s1)
|
/illumos-gate/usr/src/uts/common/io/comstar/port/iscsit/ |
H A D | iscsit_login.c | 607 iscsi_login_hdr_t *lh; in login_sm_responded() local 612 lh = (iscsi_login_hdr_t *)pdu->isp_hdr; in login_sm_responded() 623 ISCSI_LOGIN_CURRENT_STAGE(lh->flags); in login_sm_responded() 625 ISCSI_LOGIN_NEXT_STAGE(lh->flags); in login_sm_responded() 627 lh->flags & ISCSI_FLAG_LOGIN_TRANSIT; in login_sm_responded() 1860 iscsi_login_hdr_t *lh = (iscsi_login_hdr_t *)pdu->isp_hdr; in login_sm_req_pdu_check() local 1866 csg_req = ISCSI_LOGIN_CURRENT_STAGE(lh->flags); in login_sm_req_pdu_check() 1900 if ((ict->ict_cid != ntohs(lh->cid)) || in login_sm_req_pdu_check() 1901 (bcmp(ict->ict_sess->ist_isid, lh->isid, in login_sm_req_pdu_check() 1911 if ((lh->min_version > ISCSIT_MAX_VERSION) || in login_sm_req_pdu_check() [all …]
|
/illumos-gate/usr/src/uts/sun4u/excalibur/os/ |
H A D | excalibur.c | 53 ldi_handle_t lh; member 135 FWRITE, kcred, &xcalfans[i].lh, li); in load_platform_drivers() 277 err = ldi_write(xcalfans[i].lh, &uio, kcred); in plat_fan_blast()
|
/illumos-gate/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()
|
/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac_util.c | 1691 mac_set_intr(ldi_handle_t lh, processorid_t cpu_num, int oldcpuid, int ino) in mac_set_intr() argument 1700 err = ldi_ioctl(lh, PCITOOL_DEVICE_SET_INTR, (intptr_t)&iset, FKIOCTL, in mac_set_intr() 1735 mac_get_single_intr(ldi_handle_t lh, int oldcpuid, int ino, in mac_get_single_intr() argument 1757 err = ldi_ioctl(lh, PCITOOL_DEVICE_GET_INTR, (intptr_t)iget_p, in mac_get_single_intr() 1780 err = ldi_ioctl(lh, PCITOOL_DEVICE_GET_INTR, (intptr_t)iget_p, in mac_get_single_intr() 1805 mac_validate_intr(ldi_handle_t lh, mac_dladm_intr_t *dln, processorid_t cpuid) in mac_validate_intr() argument 1812 err = ldi_ioctl(lh, PCITOOL_SYSTEM_INTR_INFO, (intptr_t)&intr_info, in mac_validate_intr() 1819 if (mac_get_single_intr(lh, oldcpuid, ino, dln)) { in mac_validate_intr() 1877 ldi_handle_t lh = NULL; in mac_check_interrupt_binding() local 1908 err = ldi_open_by_name(dln.nexus_path, FREAD|FWRITE, kcred, &lh, li); in mac_check_interrupt_binding() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/cdt/ |
H A D | cdtlib.h | 144 #define _left lh.__left 145 #define _hash lh.__hash 146 #define _ppos lh.__hash
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/lua/ |
H A D | lparser.c | 1107 static void check_conflict (LexState *ls, struct LHS_assign *lh, expdesc *v) { in check_conflict() argument 1111 for (; lh; lh = lh->prev) { /* check all previous assignments */ in check_conflict() 1112 if (lh->v.k == VINDEXED) { /* assigning to a table? */ in check_conflict() 1114 if (lh->v.u.ind.vt == v->k && lh->v.u.ind.t == v->u.info) { in check_conflict() 1116 lh->v.u.ind.vt = VLOCAL; in check_conflict() 1117 lh->v.u.ind.t = extra; /* previous assignment will use safe copy */ in check_conflict() 1120 if (v->k == VLOCAL && lh->v.u.ind.idx == v->u.info) { in check_conflict() 1122 lh->v.u.ind.idx = extra; /* previous assignment will use safe copy */ in check_conflict() 1135 static void assignment (LexState *ls, struct LHS_assign *lh, int nvars) { in assignment() argument 1137 check_condition(ls, vkisvar(lh->v.k), "syntax error"); in assignment() [all …]
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs_dlinet.c | 1593 ldi_handle_t lh; in revarp_myaddr() local 1606 rc = ldi_open_by_name(ndev_path, FREAD|FWRITE, CRED(), &lh, li); in revarp_myaddr() 1614 if (rc = dl_attach(lh, ifunit, NULL)) { in revarp_myaddr() 1616 (void) ldi_close(lh, FREAD|FWRITE, CRED()); in revarp_myaddr() 1620 if (rc = dl_bind(lh, ETHERTYPE_REVARP, NULL)) { in revarp_myaddr() 1622 (void) ldi_close(lh, FREAD|FWRITE, CRED()); in revarp_myaddr() 1626 if (rc = dl_info(lh, &info, NULL, NULL, NULL)) { in revarp_myaddr() 1628 (void) ldi_close(lh, FREAD|FWRITE, CRED()); in revarp_myaddr() 1636 revarp_start(lh, &myaddr); in revarp_myaddr() 1646 (void) ldi_close(lh, FREAD|FWRITE, CRED()); in revarp_myaddr() [all …]
|