Home
last modified time | relevance | path

Searched refs:modid (Results 1 – 19 of 19) sorted by relevance

/titanic_44/usr/src/uts/common/sys/
H A Dobjfs_impl.h82 #define OBJFS_INO(modid, type) \ argument
83 (((uint64_t)(type) << 32) | (modid))
106 #define OBJFS_INO_ODIR(modid) OBJFS_INO(modid, 0) argument
122 #define OBJFS_INO_DATA(modid) OBJFS_INO(modid, 1) argument
H A Ddld_ioc.h49 #define DLD_IOC_CMD(modid, cmdid) (((uint_t)(modid) << 16) | (cmdid)) argument
H A Dhotkey_drv.h81 int modid; member
/titanic_44/usr/src/cmd/modload/
H A Dmodunload.c112 char modid[8]; in exec_userfile() local
120 (void) sprintf(modid, "%d", id); in exec_userfile()
123 (void) execle(execfile, execfile, modid, mod0, NULL, envp); in exec_userfile()
H A Drem_drv.c61 int modid, found; in main() local
158 get_modid(driver_name, &modid); in main()
161 if (modid != -1) { in main()
162 if (modctl(MODUNLOAD, modid) < 0) { in main()
H A Dupdate_drv.c48 int modid; in unload_drv() local
50 get_modid(driver_name, &modid); in unload_drv()
51 if (modid != -1) { in unload_drv()
52 if (modctl(MODUNLOAD, modid) < 0) { in unload_drv()
/titanic_44/usr/src/uts/i86pc/io/acpi_drv/
H A Dacpi_video.c796 int modid; in hotkey_init() local
799 htkp->modid = -1; in hotkey_init()
805 if ((modid = modload("drv", vendor_hotkey_drv_list[i].module)) in hotkey_init()
810 htkp->modid = modid; in hotkey_init()
827 if (htkp->modid != -1) { in hotkey_init()
828 modp = mod_hold_by_id(htkp->modid); in hotkey_init()
841 if (htkp->modid != -1) in hotkey_init()
842 (void) modunload(htkp->modid); in hotkey_init()
857 if (htkp->modid != -1) { in hotkey_fini()
858 modp = mod_hold_by_id(htkp->modid); in hotkey_fini()
[all …]
/titanic_44/usr/src/cmd/sgs/rtld/common/
H A Dtls.c103 tls_freemodid(ulong_t modid) in tls_freemodid() argument
108 i = modid / (sizeof (uint_t) * 8); in tls_freemodid()
110 j = modid % (sizeof (uint_t) * 8); in tls_freemodid()
113 if (modid < tmid.tmi_lowfree) in tls_freemodid()
114 tmid.tmi_lowfree = modid; in tls_freemodid()
/titanic_44/usr/src/uts/i86pc/os/
H A Dcmi.c321 int modid; in cmi_load_module() local
340 modid = modload_qualified(CPUMOD_SUBDIR, CPUMOD_PREFIX, in cmi_load_module()
343 if (modid == -1) in cmi_load_module()
346 modp = mod_hold_by_id(modid); in cmi_load_module()
416 int modid; in cmi_load_generic() local
421 if ((modid = modload(CPUMOD_SUBDIR, CPUMOD_PREFIX ".generic")) == -1) in cmi_load_generic()
424 modp = mod_hold_by_id(modid); in cmi_load_generic()
H A Dcms.c313 int modid; in cms_load_module() local
333 modid = modload_qualified(CPUMOD_MS_SUBDIR, CPUMOD_MS_PREFIX, in cms_load_module()
336 if (modid == -1) in cms_load_module()
339 modp = mod_hold_by_id(modid); in cms_load_module()
H A Dfakebop.c1229 char modid[32]; in build_boot_properties() local
1253 (void) snprintf(modid, sizeof (modid), in build_boot_properties()
1255 bsetprops(modid, (char *)bm[i].bm_name); in build_boot_properties()
1256 (void) snprintf(modid, sizeof (modid), in build_boot_properties()
1258 bsetprop64(modid, (uint64_t)(uintptr_t)bm[i].bm_addr); in build_boot_properties()
1259 (void) snprintf(modid, sizeof (modid), in build_boot_properties()
1261 bsetprop64(modid, (uint64_t)bm[i].bm_size); in build_boot_properties()
/titanic_44/usr/src/cmd/mdb/common/mdb/
H A Dmdb_ctf.c1246 vread_helper(mdb_ctf_id_t modid, char *modbuf, in vread_helper() argument
1265 if (mdb_ctf_type_name(modid, in vread_helper()
1268 "#%ul", mdb_ctf_type_id(modid)); in vread_helper()
1277 (void) mdb_ctf_type_resolve(modid, &modid); in vread_helper()
1280 if ((modkind = mdb_ctf_type_kind(modid)) == -1) { in vread_helper()
1292 if ((modsz = mdb_ctf_type_size(modid)) == -1UL) { in vread_helper()
1326 if (mdb_ctf_type_encoding(modid, &mod_encoding) != 0) { in vread_helper()
1427 ret = mdb_ctf_enum_iter(modid, enum_cb, &ev); in vread_helper()
1450 return (mdb_ctf_member_iter(modid, member_cb, &mbr)); in vread_helper()
1464 if (!type_equals(modid, tgtid)) { in vread_helper()
[all …]
/titanic_44/usr/src/lib/fm/topo/libtopo/common/
H A Dmod.c270 int32_t modid; in fmri_nvl2str() local
296 err = nvlist_lookup_int32(nvl, FM_FMRI_MOD_ID, &modid); in fmri_nvl2str()
321 (void) snprintf(numbuf, MAXINTSTR, "%d", modid); in fmri_nvl2str()
/titanic_44/usr/src/uts/common/syscall/
H A Dutssys.c641 modid_t modid; in dofkusers_walker() local
681 modid = ldi_usage->src_modid; in dofkusers_walker()
682 ASSERT(modid != -1); in dofkusers_walker()
694 fu_data->fud_user[fu_data->fud_user_count].fu_modid = modid; in dofkusers_walker()
/titanic_44/usr/src/uts/common/io/dld/
H A Ddld_drv.c1584 dld_ioc_findmod(uint16_t modid) in dld_ioc_findmod() argument
1589 if (modid == dld_ioc_modtable[i].dim_modid) in dld_ioc_findmod()
1596 dld_ioc_register(uint16_t modid, dld_ioc_info_t *list, uint_t count) in dld_ioc_register() argument
1598 dld_ioc_modentry_t *dim = dld_ioc_findmod(modid); in dld_ioc_register()
1609 dld_ioc_unregister(uint16_t modid) in dld_ioc_unregister() argument
1611 VERIFY(dld_ioc_register(modid, NULL, 0) == 0); in dld_ioc_unregister()
/titanic_44/usr/src/uts/common/os/
H A Ddriver_lyr.c187 ident_hash_func(modid_t modid, dev_info_t *dip, dev_t dev) in ident_hash_func() argument
194 return (modid + getminor(dev) + getmajor(dev)); in ident_hash_func()
196 return (modid); in ident_hash_func()
201 ident_find_ref_nolock(modid_t modid, dev_info_t *dip, dev_t dev, major_t major) in ident_find_ref_nolock() argument
204 uint_t index = LI_HASH(modid, dip, dev); in ident_find_ref_nolock()
211 if (((*lipp)->li_modid == modid) && in ident_find_ref_nolock()
226 modid_t modid; in ident_alloc() local
232 modid = mod_name_to_modid(mod_name); in ident_alloc()
233 ASSERT(modid != -1); in ident_alloc()
239 index = LI_HASH(modid, dip, dev); in ident_alloc()
[all …]
H A Dmodctl.c358 int modid; in modctl_modload() local
374 modid = modp->mod_id; in modctl_modload()
377 if (rvp != NULL && copyout(&modid, rvp, sizeof (modid)) != 0) in modctl_modload()
3806 modid_t modid; in mod_uninstall_all() local
3826 modid = 0; in mod_uninstall_all()
3827 while ((mp = mod_hold_next_by_id(modid)) != NULL) { in mod_uninstall_all()
3828 modid = mp->mod_id; in mod_uninstall_all()
4107 mod_hold_by_id(modid_t modid) in mod_hold_by_id() argument
4115 if (mp->mod_id == modid) { in mod_hold_by_id()
4131 mod_hold_next_by_id(modid_t modid) in mod_hold_next_by_id() argument
[all …]
/titanic_44/usr/src/uts/common/io/
H A Ddevinfo.c216 int modid; member
2083 i_lnode_alloc(int modid) in i_lnode_alloc() argument
2089 ASSERT(modid != -1); in i_lnode_alloc()
2090 i_lnode->modid = modid; in i_lnode_alloc()
2148 return (i_lnode->modid + getminor(dev) + getmajor(dev)); in i_lnode_hashfunc()
2158 return (i_lnode->modid); in i_lnode_hashfunc()
2167 if (i_lnode1->modid != i_lnode2->modid) { in i_lnode_cmp()
2168 return ((i_lnode1->modid < i_lnode2->modid) ? -1 : 1); in i_lnode_cmp()
/titanic_44/usr/src/cmd/sgs/liblddbg/common/
H A Dliblddbg.msg1157 @ MSG_TLS_MODENT2 " filesz: %#18llx memsz: %#10llx modid: %lld"