Searched defs:lh (Results 1 - 25 of 43) sorted by relevance

12

/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dinuse_zpool.c147 void *lh = NULL; local
149 if ((lh = dlopen("libzfs.so", RTLD_NOW)) == NULL) {
150 return (lh);
158 dlsym(lh, "libzfs_init")) == NULL ||
161 dlsym(lh, "zpool_in_use")) == NULL) {
162 (void) dlclose(lh);
167 (void) dlclose(lh);
171 return (lh);
H A Dinuse_vxvm.c260 void *lh; local
262 if ((lh = dlopen(VXVM_LIB_NAME, RTLD_NOW)) == NULL) {
266 if ((vxdl_libvxvm_get_version = (int (*)(int))dlsym(lh,
268 (void) dlclose(lh);
272 if ((vxdl_libvxvm_get_conf = (int (*)(int))dlsym(lh,
274 (void) dlclose(lh);
278 if ((vxdl_libvxvm_get_dgs = (int (*)(int, vm_name_t []))dlsym(lh,
280 (void) dlclose(lh);
285 dlsym(lh, "libvxvm_get_disks")) == NULL) {
286 (void) dlclose(lh);
296 void *lh; local
[all...]
H A Dinuse_svm.c518 void *lh; local
520 if ((lh = dlopen("/usr/lib/libmeta.so", RTLD_NOW)) == NULL) {
524 mdl_get_max_sets = (set_t (*)(md_error_t *))dlsym(lh, "get_max_sets");
526 mdl_mdclrerror = (void(*)(md_error_t *))dlsym(lh, "mdclrerror");
528 mdl_mdnullerror = (md_error_t *)dlsym(lh, "mdnullerror");
530 mdl_metaflushnames = (void (*)(int))dlsym(lh, "metaflushnames");
532 mdl_metaflushsetname = (void (*)(mdsetname_t *))dlsym(lh,
535 mdl_metafreenamelist = (void (*)(mdnamelist_t *))dlsym(lh,
538 mdl_metafreereplicalist = (void (*)(md_replicalist_t *))dlsym(lh,
542 md_error_t *))dlsym(lh, "metaget_drivedes
[all...]
/illumos-gate/usr/src/lib/librpcsvc/common/
H A Dbootparam_prot.h51 char lh; member in struct:ip_addr_t
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dldi.c310 struct ldi_handle lh; local
314 if (mdb_vread(&lh, sizeof (struct ldi_handle), addr) == -1) {
324 mdb_printf("%4u ", lh.lh_ref);
327 mdb_printf("%0?p ", lh.lh_vp);
330 addr = (uintptr_t)lh.lh_vp;
347 if (lh.lh_events != NULL) {
348 mdb_printf("%0?p ", lh.lh_events);
355 mdb_printf("%0?p\n", lh.lh_ident);
360 return (ldi_ident_print((uintptr_t)lh.lh_ident, refs));
/illumos-gate/usr/src/uts/common/rpc/
H A Dbootparam.h54 char lh; member in struct:ip_addr_t
/illumos-gate/usr/src/uts/common/io/
H A Dl_strplumb.c222 ldi_handle_t lh; local
230 kcred, &lh, li);
238 kcred, &lh, li);
254 error = ldi_ioctl(lh, SAD_GAP, (intptr_t)&push,
259 (void) ldi_close(lh, FREAD|FWRITE, kcred);
290 (void) ldi_close(lh, FREAD|FWRITE, kcred);
300 error = ldi_ioctl(lh, SAD_SAP, (intptr_t)&push,
306 (void) ldi_close(lh, FREAD|FWRITE, kcred);
339 error = ldi_ioctl(lh, SAD_SAP, (intptr_t)&push,
345 (void) ldi_close(lh, FREA
[all...]
H A Dsundlpi.c191 dl_op(ldi_handle_t lh, mblk_t **mpp, t_uscalar_t expprim, size_t minlen, argument
202 (void) ldi_putmsg(lh, mp);
204 switch (err = ldi_getmsg(lh, &mp, tvp)) {
278 * Send a DL_ATTACH_REQ for `ppa' over `lh' and wait for the response.
284 dl_attach(ldi_handle_t lh, int ppa, dl_error_ack_t *dleap) argument
295 err = dl_op(lh, &mp, DL_OK_ACK, DL_OK_ACK_SIZE, dleap, NULL);
302 * Send a DL_BIND_REQ for `sap' over `lh' and wait for the response.
308 dl_bind(ldi_handle_t lh, uint_t sap, dl_error_ack_t *dleap) argument
326 err = dl_op(lh, &mp, DL_BIND_ACK, DL_BIND_ACK_SIZE, dleap, NULL);
340 * Send a DL_PHYS_ADDR_REQ over `lh' an
349 dl_phys_addr(ldi_handle_t lh, uchar_t *physaddr, size_t *physlenp, dl_error_ack_t *dleap) argument
404 dl_info(ldi_handle_t lh, dl_info_ack_t *dliap, uchar_t *physaddr, size_t *physlenp, dl_error_ack_t *dleap) argument
449 dl_notify(ldi_handle_t lh, uint32_t *notesp, dl_error_ack_t *dleap) argument
[all...]
H A Dstrplumb.c287 getifflags(ldi_handle_t lh, struct lifreq *lifrp) argument
297 return (ldi_ioctl(lh, I_STR, (intptr_t)&iocb, FKIOCTL, CRED(), &rval));
302 setifname(ldi_handle_t lh, struct lifreq *lifrp) argument
312 return (ldi_ioctl(lh, I_STR, (intptr_t)&iocb, FKIOCTL, CRED(), &rval));
318 ldi_handle_t lh = NULL; local
352 &lh, li)) != 0) {
359 if ((err = ldi_ioctl(lh, I_PUSH, (intptr_t)IP, FKIOCTL, CRED(),
365 if ((err = getifflags(lh, &lifr)) != 0)
384 if ((err = setifname(lh, &lifr)) != 0)
388 if ((err = getifflags(lh,
649 ldi_handle_t lh; local
[all...]
H A Dconsconfig_dacf.c460 consconfig_kbd_abort_enable(ldi_handle_t lh) argument
466 err = ldi_ioctl(lh, CONSSETABORTENABLE, (uintptr_t)B_TRUE,
480 consconfig_kbd_abort_disable(ldi_handle_t lh) argument
486 err = ldi_ioctl(lh, CONSSETABORTENABLE, (uintptr_t)B_FALSE,
546 consconfig_get_polledio(ldi_handle_t lh) argument
565 err = ldi_ioctl(lh, I_STR, (intptr_t)&strioc, FKIOCTL, kcred, &rval);
595 ldi_handle_t lh; local
601 FREAD|FWRITE|FNOCTTY, kcred, &lh, sp->cons_li) != 0)
609 polled_io = consconfig_get_polledio(lh);
618 (void) ldi_close(lh, FREA
1574 ldi_handle_t lh; local
[all...]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dboot.c48 struct linux_kernel_header *lh; local
96 lh = (struct linux_kernel_header *) buffer;
219 else if (lh->boot_flag == BOOTSEC_SIGNATURE
220 && lh->setup_sects <= LINUX_MAX_SETUP_SECTS)
223 int setup_sects = lh->setup_sects;
225 if (lh->header == LINUX_MAGIC_SIGNATURE && lh->version >= 0x0200)
227 big_linux = (lh->loadflags & LINUX_FLAG_BIG_KERNEL);
228 lh->type_of_loader = LINUX_BOOT_LOADER_TYPE;
237 if (lh
814 struct linux_kernel_header *lh local
[all...]
/illumos-gate/usr/src/uts/common/io/softmac/
H A Dsoftmac_capab.c85 softmac_fill_capab(ldi_handle_t lh, softmac_t *softmac) argument
91 if ((err = dl_capab(lh, &mp)) != 0)
108 dl_capab(ldi_handle_t lh, mblk_t **mpp) argument
124 (void) ldi_putmsg(lh, mp);
125 if ((err = ldi_getmsg(lh, &mp, (timestruc_t *)NULL)) != 0)
H A Dsoftmac_main.c680 ldi_handle_t lh = NULL; local
705 err = ldi_open_by_dev(&dev, OTYP_CHR, FREAD|FWRITE, kcred, &lh, li);
707 if (dl_attach(lh, softmac->smac_uppa + 1 * 1000, NULL) == 0)
709 (void) ldi_close(lh, FREAD|FWRITE, kcred);
725 if (ldi_open_by_dev(&dev, OTYP_CHR, FREAD|FWRITE, kcred, &lh,
734 while (ldi_ioctl(lh, I_POP, 0, FKIOCTL, kcred, &rval) == 0)
738 if ((rval = dl_info(lh, &dlia, NULL, NULL, &dlea)) != 0) {
745 (void) ldi_close(lh, FREAD|FWRITE, kcred);
755 (void) ldi_close(lh, FREAD|FWRITE, kcred);
761 (dl_attach(lh, softma
1315 ldi_handle_t lh = NULL; local
[all...]
/illumos-gate/usr/src/uts/sun4u/excalibur/os/
H A Dexcalibur.c55 ldi_handle_t lh; member in struct:xcalfan_info
137 FWRITE, kcred, &xcalfans[i].lh, li);
279 err = ldi_write(xcalfans[i].lh, &uio, kcred);
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Dlinux.c92 struct linux_kernel_header lh; local
127 n = read(fd, &lh, sizeof (lh));
128 if (n != sizeof (lh)) {
134 if (lh.boot_flag != BOOTSEC_SIGNATURE) {
140 setup_sects = lh.setup_sects;
158 if (lh.header == LINUX_MAGIC_SIGNATURE && lh.version >= 0x0200) {
159 linux_big = lh.loadflags & LINUX_FLAG_BIG_KERNEL;
160 lh
279 struct linux_kernel_header *lh = (struct linux_kernel_header *) local
[all...]
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dsockcommon.c129 socket_newconn(struct sonode *parent, sock_lower_handle_t lh, argument
149 so->so_proto_handle = lh;
/illumos-gate/usr/src/stand/lib/fs/ufs/
H A Dlufsboot.c195 #define inslist(lh, l) if ((*(lh))) { \
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) \
208 if (*(lh) != (l) || (l)->l_prev != (l)) \
210 *(lh)
641 lb_me_t **lh, *l, *lnext; local
684 lb_me_t **lh, *l; local
906 lb_me_t **lh, *l, *lnext; local
1005 lb_me_t **lh, *l; local
[all...]
/illumos-gate/usr/src/uts/common/klm/
H A Dnlm_service.c324 struct nlm4_holder *lh; local
413 * Note that lh->oh is freed via xdr_free,
418 lh = &resp->stat.nlm4_testrply_u.holder;
419 lh->exclusive = (fl.l_type == F_WRLCK);
420 lh->svid = fl.l_pid;
421 lh->oh.n_len = sizeof (*oh);
422 lh->oh.n_bytes = (void *)oh;
423 lh->l_offset = fl.l_start;
424 lh->l_len = fl.l_len;
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev_disk.c90 vdev_disk_off_notify(ldi_handle_t lh, ldi_ev_cookie_t ecookie, void *arg, argument
126 vdev_disk_off_finalize(ldi_handle_t lh, ldi_ev_cookie_t ecookie, argument
161 vdev_disk_dgrd_finalize(ldi_handle_t lh, ldi_ev_cookie_t ecookie, argument
H A Dzap_leaf.c461 uint16_t lh; local
466 for (lh = LEAF_HASH(l, h); lh <= bestlh; lh++) {
467 for (chunk = zap_leaf_phys(l)->l_hash[lh];
476 ASSERT3U(bestlh, >=, lh);
477 bestlh = lh;
/illumos-gate/usr/src/cmd/sed/
H A Dcompile.c874 struct labhash **lhp, *lh; local
881 for (lh = *lhp; lh != NULL; lh = lh->lh_next)
882 if (lh->lh_hash == h && strcmp(cp->t, lh->lh_cmd->t) == 0)
884 if ((lh = malloc(sizeof (*lh))) == NULL)
886 lh
900 struct labhash *lh; local
922 struct labhash *lh, *next; local
[all...]
/illumos-gate/usr/src/uts/common/avs/ns/solaris/
H A Dnsc_raw.c66 ldi_handle_t lh; /* Solaris layered driver handle */ member in struct:raw_dev
381 OTYP_BLK, FREAD|FWRITE, cred, &cdi->lh, li);
384 cdi->lh = NULL;
411 if (cdi->lh)
412 (void) ldi_close(cdi->lh, FWRITE|FREAD, cred);
464 rc = ldi_close(cdi->lh, FREAD|FWRITE, cred);
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dkeysock.c195 ldi_handle_t lh, ip6_lh = NULL; local
250 err = ldi_open_by_name(IPSECAHDEV, FREAD|FWRITE, cr, &lh, li);
255 err = ldi_ioctl(lh,
260 (void) ldi_close(lh, FREAD|FWRITE, cr);
263 err = ldi_ioctl(ip6_lh, I_PLINK, (intptr_t)lh,
267 (void) ldi_close(lh, FREAD|FWRITE, cr);
270 (void) ldi_close(lh, FREAD|FWRITE, cr);
275 FREAD|FWRITE, cr, &lh, li);
280 err = ldi_ioctl(lh,
286 (void) ldi_close(lh, FREA
[all...]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_log.c1268 nfslog_buffer_header lh; local
1279 lh.bh_length = 0; /* don't know yet how large it will be */
1280 lh.bh_version = NFSLOG_BUF_VERSION;
1281 lh.bh_flags = 0;
1282 lh.bh_offset = 0;
1284 TIMESPEC_TO_TIMESPEC32(&lh.bh_timestamp, &now);
1292 (void) xdr_nfslog_buffer_header(&xdrs, &lh);
/illumos-gate/usr/src/uts/common/io/idm/
H A Didm_text.c1464 iscsi_login_hdr_t *lh; local
1488 lh = (iscsi_login_hdr_t *)pdu->isp_hdr;
1572 ((lh->flags & ISCSI_FLAG_LOGIN_CONTINUE) &&
1574 (!(lh->flags & ISCSI_FLAG_LOGIN_CONTINUE) &&
1577 if ((lh->flags & ISCSI_FLAG_LOGIN_CONTINUE) &

Completed in 2016 milliseconds

12