Lines Matching refs:shn
51 struct did_shr_name shn; in print_did_shared_name() local
56 if (mdb_vread(&shn, sizeof (struct did_shr_name), addr) != in print_did_shared_name()
61 if (shn.did_size == 0) in print_did_shared_name()
65 mdb_printf("did_key: %d\n", shn.did_key); in print_did_shared_name()
66 mdb_printf("did_count: %u\n", shn.did_count); in print_did_shared_name()
67 mdb_printf("did_data: 0x%x \n", shn.did_data); in print_did_shared_name()
68 mdb_printf("did_size: %u\n", shn.did_size); in print_did_shared_name()
69 sn_name_addr = addr + ((uintptr_t)&shn.did_devid - (uintptr_t)&shn); in print_did_shared_name()
70 if (shn.did_size > 0) { in print_did_shared_name()
71 sn_name = mdb_alloc(shn.did_size + 1, UM_SLEEP | UM_GC); in print_did_shared_name()
72 if (mdb_readstr((char *)sn_name, shn.did_size + 1, in print_did_shared_name()
80 next_addr = addr + MY_DID_SHR_NAMSIZ(shn.did_size); in print_did_shared_name()
89 struct nm_shared_name shn; in print_nm_shared_name() local
94 if (mdb_vread(&shn, sizeof (struct nm_shared_name), addr) != in print_nm_shared_name()
99 if (shn.sn_namlen == 0) in print_nm_shared_name()
103 mdb_printf("sn_key: %d \n", shn.sn_key); in print_nm_shared_name()
104 mdb_printf("sn_count: %u\n", shn.sn_count); in print_nm_shared_name()
105 mdb_printf("sn_data: 0x%x \n", shn.sn_data); in print_nm_shared_name()
106 mdb_printf("sn_namlen: %u\n", shn.sn_namlen); in print_nm_shared_name()
107 sn_name_addr = addr + ((uintptr_t)&shn.sn_name - (uintptr_t)&shn); in print_nm_shared_name()
108 if (shn.sn_namlen > 0) { in print_nm_shared_name()
109 sn_name = mdb_alloc(shn.sn_namlen + 1, UM_SLEEP | UM_GC); in print_nm_shared_name()
110 if (mdb_readstr((char *)sn_name, shn.sn_namlen + 1, in print_nm_shared_name()
117 next_addr = addr + MY_SHR_NAMSIZ(shn.sn_namlen); in print_nm_shared_name()