Home
last modified time | relevance | path

Searched refs:lhp (Results 1 – 14 of 14) sorted by relevance

/illumos-gate/usr/src/lib/libumem/common/
H A Dumem_fork.c64 umem_lockup_log_header(umem_log_header_t *lhp) in umem_lockup_log_header() argument
67 if (lhp == NULL) in umem_lockup_log_header()
70 (void) mutex_lock(&lhp->lh_cpu[idx].clh_lock); in umem_lockup_log_header()
72 (void) mutex_lock(&lhp->lh_lock); in umem_lockup_log_header()
76 umem_release_log_header(umem_log_header_t *lhp) in umem_release_log_header() argument
79 if (lhp == NULL) in umem_release_log_header()
82 (void) mutex_unlock(&lhp->lh_lock); in umem_release_log_header()
85 (void) mutex_unlock(&lhp->lh_cpu[idx].clh_lock); in umem_release_log_header()
H A Dumem.c1288 if (lhp == NULL) in umem_log_init()
1291 bzero(lhp, lhsize); in umem_log_init()
1309 bzero(lhp->lh_base, lhp->lh_chunksize * nchunks); in umem_log_init()
1321 lhp->lh_tail = 0; in umem_log_init()
1323 return (lhp); in umem_log_init()
1326 if (lhp != NULL) { in umem_log_init()
1351 lhp->lh_hits++; in umem_log_enter()
1352 lhp->lh_free[lhp->lh_tail] = clhp->clh_chunk; in umem_log_enter()
1353 lhp->lh_tail = (lhp->lh_tail + 1) % lhp->lh_nchunks; in umem_log_enter()
1354 clhp->clh_chunk = lhp->lh_free[lhp->lh_head]; in umem_log_enter()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Ddriver_lyr.c363 lhp = kmem_zalloc(sizeof (*lhp), KM_SLEEP); in handle_alloc()
387 lhp->lh_ref = 1; in handle_alloc()
388 lhp->lh_vp = vp; in handle_alloc()
395 lhp->lh_type = 0; in handle_alloc()
420 return (lhp); in handle_alloc()
429 ASSERT(lhp != NULL); in handle_release()
436 (void *)lhp, (void *)lhp->lh_ident, (void *)lhp->lh_vp, in handle_release()
448 lhpp = handle_find_ref_nolock(lhp->lh_vp, lhp->lh_ident); in handle_release()
1183 vp = lhp->lh_vp; in ldi_usage_walker()
1188 lhp = lhp->lh_next; in ldi_usage_walker()
[all …]
H A Dkmem.c1399 kmem_log_header_t *lhp; in kmem_log_init() local
1411 bzero(lhp, lhsize); in kmem_log_init()
1420 bzero(lhp->lh_base, lhp->lh_chunksize * nchunks); in kmem_log_init()
1429 lhp->lh_free[i] = i; in kmem_log_init()
1432 lhp->lh_tail = 0; in kmem_log_init()
1434 return (lhp); in kmem_log_init()
1452 lhp->lh_hits++; in kmem_log_enter()
1453 lhp->lh_free[lhp->lh_tail] = clhp->clh_chunk; in kmem_log_enter()
1454 lhp->lh_tail = (lhp->lh_tail + 1) % lhp->lh_nchunks; in kmem_log_enter()
1455 clhp->clh_chunk = lhp->lh_free[lhp->lh_head]; in kmem_log_enter()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dldi.c50 struct ldi_handle *lhp; /* ldi handle pointer */ member
90 if ((mdb_vread(&lhwp->lhp, sizeof (struct ldi_handle *), in ldi_handle_walk_init()
96 wsp->walk_addr = (uintptr_t)lhwp->lhp; in ldi_handle_walk_init()
116 if ((mdb_vread(&lhwp->lhp, sizeof (struct ldi_handle *), in ldi_handle_walk_step()
123 wsp->walk_addr = (uintptr_t)lhwp->lhp; in ldi_handle_walk_step()
H A Dkmem.c1799 kmem_log_header_t *lhp; in kmem_log_walk_init() local
1817 lhp = &klw->klw_lh; in kmem_log_walk_init()
1825 klw->klw_size = lhp->lh_chunksize * lhp->lh_nchunks; in kmem_log_walk_init()
1830 (uintptr_t)lhp->lh_base) == -1) { in kmem_log_walk_init()
1837 klw->klw_sorted = mdb_alloc(maxndx * lhp->lh_nchunks * in kmem_log_walk_init()
1840 for (i = 0, k = 0; i < lhp->lh_nchunks; i++) { in kmem_log_walk_init()
1842 ((uintptr_t)klw->klw_base + i * lhp->lh_chunksize); in kmem_log_walk_init()
2703 uintptr_t lhp, clhp; in kmem_log() local
2716 if (mdb_readvar(&lhp, "kmem_transaction_log") == -1) { in kmem_log()
2721 if (lhp == 0) { in kmem_log()
[all …]
/illumos-gate/usr/src/lib/fm/libdiskstatus/common/
H A Dds_scsi.c484 scsi_log_header_t *lhp; in verify_logpage() local
493 if ((lhp = calloc(buflen, 1)) == NULL) in verify_logpage()
501 free(lhp); in verify_logpage()
512 log_length = BE_16(lhp->lh_length); in verify_logpage()
514 free(lhp); in verify_logpage()
521 free(lhp); in verify_logpage()
529 free(lhp); in verify_logpage()
1010 scsi_log_header_t *lhp; in analyze_one_logpage() local
1018 if ((lhp = calloc(buflen, 1)) == NULL) in analyze_one_logpage()
1025 log_length = BE_16(lhp->lh_length); in analyze_one_logpage()
[all …]
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_lib.c591 const GElf_Shdr *lhp = &sp[shp->sh_link]; in ctf_fdcreate_int() local
597 lhp->sh_name >= sp[shstrndx].sh_size) in ctf_fdcreate_int()
618 strsect.cts_name = strs + lhp->sh_name; in ctf_fdcreate_int()
619 strsect.cts_type = lhp->sh_type; in ctf_fdcreate_int()
620 strsect.cts_flags = lhp->sh_flags; in ctf_fdcreate_int()
621 strsect.cts_size = lhp->sh_size; in ctf_fdcreate_int()
622 strsect.cts_entsize = lhp->sh_entsize; in ctf_fdcreate_int()
623 strsect.cts_offset = (off64_t)lhp->sh_offset; in ctf_fdcreate_int()
/illumos-gate/usr/src/lib/libproc/common/
H A DPstack.c228 sort_uclist(const void *lhp, const void *rhp) in sort_uclist() argument
230 uintptr_t lhs = *((const uintptr_t *)lhp); in sort_uclist()
H A DPstack.h48 int sort_uclist(const void *lhp, const void *rhp);
/illumos-gate/usr/src/cmd/sed/
H A Dcompile.c874 struct labhash **lhp, *lh; in enterlabel() local
880 lhp = &labels[h & LHMASK]; in enterlabel()
881 for (lh = *lhp; lh != NULL; lh = lh->lh_next) in enterlabel()
886 lh->lh_next = *lhp; in enterlabel()
890 *lhp = lh; in enterlabel()
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/
H A Dnfslog_elf.c1291 nfslog_record_header *lhp, char *principal_name, char *tag, in nfsl_elf_record_header_print() argument
1304 nfsl_get_time((time_t)lhp->rh_timestamp.tv_sec)); in nfsl_elf_record_header_print()
1306 lhp->rh_reclen); in nfsl_elf_record_header_print()
1314 progname, lhp->rh_version, disp->procname); in nfsl_elf_record_header_print()
1316 NFSL_AUTH_FLAVOR_PRINT(lhp->rh_auth_flavor)); in nfsl_elf_record_header_print()
1333 elfbufoffset += sprintf(&elfbuf[elfbufoffset], " 0x%lx", lhp->rh_uid); in nfsl_elf_record_header_print()
1334 if (((pwp = getpwuid(lhp->rh_uid)) != NULL) && (pwp->pw_name != NULL)) { in nfsl_elf_record_header_print()
1341 elfbufoffset += sprintf(&elfbuf[elfbufoffset], " 0x%lx", lhp->rh_gid); in nfsl_elf_record_header_print()
/illumos-gate/usr/src/cmd/mdb/common/modules/libumem/
H A Dumem.c1731 umem_log_header_t *lhp; in umem_log_walk_init() local
1749 lhp = &ulw->ulw_lh; in umem_log_walk_init()
1757 ulw->ulw_size = lhp->lh_chunksize * lhp->lh_nchunks; in umem_log_walk_init()
1759 maxndx = lhp->lh_chunksize / UMEM_BUFCTL_AUDIT_SIZE - 1; in umem_log_walk_init()
1762 (uintptr_t)lhp->lh_base) == -1) { in umem_log_walk_init()
1769 ulw->ulw_sorted = mdb_alloc(maxndx * lhp->lh_nchunks * in umem_log_walk_init()
1772 for (i = 0, k = 0; i < lhp->lh_nchunks; i++) { in umem_log_walk_init()
2379 uintptr_t lhp, clhp; in umem_log() local
2383 if (umem_readvar(&lhp, "umem_transaction_log") == -1) { in umem_log()
2388 if (lhp == 0) { in umem_log()
[all …]
/illumos-gate/usr/src/uts/sun4u/opl/io/oplmsu/
H A Doplmsu.c1087 oplmsu_open_msu(dev_info_t *dip, ldi_ident_t *lip, ldi_handle_t *lhp) in oplmsu_open_msu() argument
1103 ldi_open_by_dev(&devt, OTYP_CHR, (FREAD|FWRITE), kcred, lhp, *lip); in oplmsu_open_msu()