/illumos-gate/usr/src/cmd/mdb/common/kmdb/kctl/ |
H A D | kctl_dmod.c | 44 struct modctl *kdi_dmods; 52 static struct modctl kctl_dmods; 130 struct modctl *modp; in kctl_dmod_load() 160 modp = kobj_zalloc(sizeof (struct modctl), KM_SLEEP); in kctl_dmod_load() 190 kobj_free(modp, sizeof (struct modctl)); in kctl_dmod_load() 275 struct modctl *modp = &modules; in kctl_dmod_load_all() 302 kctl_dmod_unload_common(struct modctl *modp) in kctl_dmod_unload_common() 304 struct modctl *m; in kctl_dmod_unload_common() 333 kmem_free(modp, sizeof (struct modctl)); in kctl_dmod_unload_common() 365 struct modctl *modp; in kctl_dmod_unload_all() [all …]
|
H A D | kctl_mod.c | 43 kctl_mod_decompress(struct modctl *modp) in kctl_mod_decompress() 61 kctl_mod_loaded(struct modctl *modp) in kctl_mod_loaded() 83 kctl_mod_changed(uint_t why, struct modctl *what) in kctl_mod_changed()
|
H A D | kctl.h | 115 extern int kctl_mod_decompress(struct modctl *); 116 extern void kctl_mod_loaded(struct modctl *); 117 extern void kctl_mod_changed(uint_t, struct modctl *);
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | kdi_impl.h | 51 void (*dv_mod_loaded)(struct modctl *); 52 void (*dv_mod_unloading)(struct modctl *); 98 int (*kdi_mod_iter)(int (*)(struct modctl *, void *), void *); 103 int (*kdi_mod_isloaded)(struct modctl *); 108 int (*kdi_mod_haschanged)(struct modctl *, struct module *, 109 struct modctl *, struct module *);
|
H A D | kdi.h | 54 struct modctl; 62 extern struct modctl *kdi_dmods; 74 extern void kdi_dvec_mod_loaded(struct modctl *); 75 extern void kdi_dvec_mod_unloading(struct modctl *);
|
H A D | kobj_impl.h | 95 typedef void kobj_notify_f(uint_t, struct modctl *); 181 extern struct modctl *kobj_boot_mod_lookup(const char *); 183 extern int kobj_load_primary_module(struct modctl *); 199 extern void kobj_lm_append(int, struct modctl *modp);
|
H A D | modctl.h | 482 struct modctl *mp; 488 struct modctl *modl_modp; 497 typedef struct modctl { struct 498 struct modctl *mod_next; /* &modules based list */ argument 499 struct modctl *mod_prev; argument 528 struct modctl *mod_requisite_loading; /* mod circular dependency */ argument 671 extern int modctl(int, ...);
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | modctl.c | 82 static int mod_circdep(struct modctl *); 86 static int mod_getinfo(struct modctl *, struct modinfo *); 87 static struct modctl *allocate_modp(const char *, const char *); 89 static int mod_load(struct modctl *, int); 90 static void mod_unload(struct modctl *); 91 static int modinstall(struct modctl *); 92 static int moduninstall(struct modctl *); 94 static struct modctl *mod_hold_by_name_common(struct modctl *, const char *); 95 static struct modctl *mod_hold_next_by_id(modid_t); 96 static struct modctl *mod_hold_loaded_mod(struct modctl *, char *, int *); [all …]
|
H A D | modconf.c | 73 extern struct modctl *mod_getctl(struct modlinkage *); 406 struct modctl *mcp; in mod_modname() 442 struct modctl *mcp; in mod_infodrv() 476 struct modctl *mcp; in mod_installdacf() 487 struct modctl *mcp; in mod_removedacf() 546 struct modctl *mcp; in mod_installdrv() 646 struct modctl *mcp; in mod_removedrv() 820 struct modctl *mcp = mod_getctl(modlp); in mod_removesys_sysent() 943 struct modctl *mcp; in mod_installfs() 1061 struct modctl *mcp; in mod_removefs() [all …]
|
H A D | kdi.c | 34 struct modctl *kdi_dmods; 95 kdi_dvec_mod_loaded(struct modctl *modp) in kdi_dvec_mod_loaded() 101 kdi_dvec_mod_unloading(struct modctl *modp) in kdi_dvec_mod_unloading()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/krtld/ |
H A D | krtld.c | 37 struct modctl mwd_modctl; 65 if (mdb_vread(&mwd->mwd_modctl, sizeof (struct modctl), in modctl_walk_step() 89 const struct modctl *mcp = (const struct modctl *)data; in modctl_format() 128 struct modctl mc; in modctls() 227 struct modctl ctl; in modhdrs() 242 mdb_vread(&ctl, sizeof (struct modctl), addr); in modhdrs() 260 const struct modctl *mcp = (const struct modctl *)data; in modinfo_format() 315 struct modctl mc; in modinfo() 329 ctfinfo_format(uintptr_t addr, const struct modctl *mcp, void *private) in ctfinfo_format()
|
/illumos-gate/usr/src/uts/common/krtld/ |
H A D | kobj_kdi.c | 96 kobj_kdi_mod_iter(int (*func)(struct modctl *, void *), void *arg) in kobj_kdi_mod_iter() argument 111 struct modctl *modp = &modules; in kobj_kdi_mod_iter() 123 kobj_kdi_mod_isloaded(struct modctl *modp) in kobj_kdi_mod_isloaded() 141 kobj_kdi_mod_notify(uint_t why, struct modctl *what) in kobj_kdi_mod_notify() 172 kobj_kdi_mod_haschanged(struct modctl *mc1, struct module *mp1, in kobj_kdi_mod_haschanged() 173 struct modctl *mc2, struct module *mp2) in kobj_kdi_mod_haschanged()
|
H A D | kobj_stubs.c | 37 kobj_load_module(struct modctl *modp, int use_path) in kobj_load_module() 44 kobj_load_primary_module(struct modctl *modp) in kobj_load_primary_module() 51 kobj_unload_module(struct modctl *modp) in kobj_unload_module()
|
/illumos-gate/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_kdi.h | 63 extern int kmdb_kdi_mod_iter(int (*)(struct modctl *, void *), void *); 64 extern int kmdb_kdi_mod_isloaded(struct modctl *); 65 extern int kmdb_kdi_mod_haschanged(struct modctl *, struct module *, 66 struct modctl *, struct module *);
|
H A D | kmdb_kdi.c | 61 int (*mid_usercb)(struct modctl *, void *); 76 kmdb_kdi_mod_interp(struct modctl *mp, void *arg) in kmdb_kdi_mod_interp() 99 kmdb_kdi_mod_iter(int (*cb)(struct modctl *, void *), void *arg) in kmdb_kdi_mod_iter() argument 122 kmdb_kdi_mod_isloaded(struct modctl *modp) in kmdb_kdi_mod_isloaded() 128 kmdb_kdi_mod_haschanged(struct modctl *mc1, struct module *mp1, in kmdb_kdi_mod_haschanged() 129 struct modctl *mc2, struct module *mp2) in kmdb_kdi_mod_haschanged()
|
/illumos-gate/usr/src/cmd/getdevpolicy/ |
H A D | getdevpolicy.c | 83 if (modctl(MODGETDEVPOLICY, &nitems, sz, mem) == 0 || errno != ENOMEM) in getpolicy() 90 if (modctl(MODGETDEVPOLICY, &nitems, sz, mem) != 0) in getpolicy() 99 if (modctl(MODGETNAME, major, sizeof (major), in getpolicy() 133 if (modctl(MODGETDEVPOLICYBYNAME, sz, ds, dev) != 0) in getdevpolicy()
|
/illumos-gate/usr/src/lib/libdevid/ |
H A D | deviceid.c | 65 if (modctl(MODSIZEOF_DEVID, dev, &len) != 0) in devid_get() 73 if (modctl(MODGETDEVID, dev, len, mydevid) != 0) { in devid_get() 106 if (modctl(MODSIZEOF_MINORNAME, dev, spectype, &len) != 0) in devid_get_minor_name() 114 if (modctl(MODGETMINORNAME, dev, spectype, len, myminor_name) != 0) { in devid_get_minor_name() 277 again: if (modctl(MODDEVID2PATHS, devid, minor_name, 0, &lens, NULL) != 0) in devid_deviceid_to_nmlist() 281 if (modctl(MODDEVID2PATHS, devid, minor_name, 0, &lens, paths) != 0) { in devid_deviceid_to_nmlist()
|
/illumos-gate/usr/src/uts/intel/dtrace/ |
H A D | fbt.c | 63 struct modctl *fbtp_ctl; 141 fbt_provide_module(void *arg, struct modctl *ctl) in fbt_provide_module() 409 struct modctl *ctl = fbt->fbtp_ctl; in fbt_destroy() 452 struct modctl *ctl = fbt->fbtp_ctl; in fbt_enable() 492 struct modctl *ctl = fbt->fbtp_ctl; in fbt_disable() 509 struct modctl *ctl = fbt->fbtp_ctl; in fbt_suspend() 525 struct modctl *ctl = fbt->fbtp_ctl; in fbt_resume() 541 struct modctl *ctl = fbt->fbtp_ctl; in fbt_getargdesc() 570 struct modctl *mp = &modules; in fbt_getargdesc() 571 struct modctl *mod = NULL; in fbt_getargdesc()
|
/illumos-gate/usr/src/uts/common/fs/objfs/ |
H A D | objfs_root.c | 75 struct modctl *mp; in objfs_root_do_lookup() 108 struct modctl **mpp = data; in objfs_root_do_readdir() 109 struct modctl *mp = *mpp; in objfs_root_do_readdir() 158 struct modctl *mp = &modules; in objfs_root_readdir()
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_dim.c | 83 if (modctl(MODGETMAJBIND, drv_name, strlen(drv_name) + 1, &major) < 0) in di_dim_path_devices() 87 if (modctl(MODGETDEVFSPATH_MI_LEN, major, instance, &len) != 0) in di_dim_path_devices() 101 if (modctl(MODGETDEVFSPATH_MI, major, instance, len, devices) != 0) { in di_dim_path_devices()
|
H A D | devinfo_finddev.c | 77 rv = modctl(MODDEVEXISTS, devname, strlen(devname)); in device_exists() 195 rv = modctl(MODDEVREADDIR, path, strlen(path), NULL, &bufsiz); in finddev_readdir_devfs() 208 rv = modctl(MODDEVREADDIR, path, strlen(path), in finddev_readdir_devfs() 300 rv = modctl(MODDEVEMPTYDIR, path, strlen(path), &empty); in finddev_emptydir_devfs()
|
/illumos-gate/usr/src/lib/libc/common/sys/ |
H A D | modctl.S | 37 SYSCALL_RVAL1(modctl) 39 SET_SIZE(modctl)
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | devpolicy.c | 131 if (modctl(MODGETMAJBIND, line, col - line + 1, &maj) in loadprivs() 138 if (modctl(MODALLOCPRIV, line) != 0) { in loadprivs() 222 if (modctl(MODGETMAJBIND, maj, strlen(maj) + 1, in loadpolicy() 263 if ((res = modctl(MODSETDEVPOLICY, cnt, devplcysys_sz, mem)) != 0) in loadpolicy()
|
/illumos-gate/usr/src/cmd/modload/ |
H A D | rem_drv.c | 162 if (modctl(MODUNLOAD, modid) < 0) { in main() 170 if (modctl(MODUNLOADDRVCONF, (major_t)found) < 0) { in main() 177 if (mod_unloaded && (modctl(MODREMMAJBIND, (major_t)found) < 0)) { in main() 220 err = modctl(MODREMDRVCLEANUP, driver_name, 0, NULL); in main()
|
/illumos-gate/usr/src/uts/common/crypto/core/ |
H A D | kcf.c | 118 struct modctl * 121 struct modctl *mctlp; in kcf_get_modctl()
|