Home
last modified time | relevance | path

Searched refs:modctl (Results 1 – 25 of 121) sorted by relevance

12345

/illumos-gate/usr/src/cmd/mdb/common/kmdb/kctl/
H A Dkctl_dmod.c44 struct modctl *kdi_dmods;
52 static struct modctl kctl_dmods;
130 struct modctl *modp; 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()
415 struct modctl *modp; in kctl_dmod_sync()
[all …]
H A Dkctl_mod.c43 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 Dkctl.h115 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 Dkdi_impl.h51 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 Dkdi.h54 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 Dkobj_impl.h95 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 Dmodctl.h478 struct modctl *mp;
484 struct modctl *modl_modp;
493 typedef struct modctl { struct
494 struct modctl *mod_next; /* &modules based list */ argument
495 struct modctl *mod_prev; argument
524 struct modctl *mod_requisite_loading; /* mod circular dependency */ argument
667 extern int modctl(int, ...);
/illumos-gate/usr/src/cmd/mdb/common/modules/krtld/
H A Dkrtld.c37 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/os/
H A Dmodctl.c99 static struct modctl *mod_hold_loaded_mod(struct modctl *, char *, int *);
103 static void mod_make_requisite(struct modctl *, struct modctl *);
106 static struct modctl *mod_hold_by_name_requisite(struct modctl *, char *);
114 struct modctl *mp;
360 struct modctl *modp; in modctl_modload()
3178 struct modctl *
4113 struct modctl *
4119 struct modctl *
4382 struct modctl *
4789 struct modctl *hmodp = (struct modctl *)h; in ddi_modsym()
[all …]
H A Dmodconf.c406 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()
943 struct modctl *mcp; in mod_installfs()
1061 struct modctl *mcp; in mod_removefs()
1163 struct modctl *mcp; in mod_installsockmod()
1270 struct modctl *mcp; in mod_removesched()
[all …]
H A Dkdi.c34 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/uts/common/krtld/
H A Dkobj_kdi.c96 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 Dkobj_stubs.c37 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 Dkmdb_kdi.h63 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 Dkmdb_kdi.c61 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 Dgetdevpolicy.c83 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 Ddeviceid.c65 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 Dfbt.c63 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 Dobjfs_root.c75 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/libc/common/sys/
H A Dmodctl.S37 SYSCALL_RVAL1(modctl)
39 SET_SIZE(modctl)
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_dim.c83 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 Ddevinfo_finddev.c77 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/cmd/modload/
H A Drem_drv.c162 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/cmd/devfsadm/
H A Ddevpolicy.c131 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/uts/common/crypto/core/
H A Dkcf.c118 struct modctl *
121 struct modctl *mctlp; in kcf_get_modctl()

12345