Lines Matching defs:modctl
27 * modctl system call for loadable module support.
56 #include <sys/modctl.h>
80 static int mod_circdep(struct modctl *);
84 static int mod_getinfo(struct modctl *, struct modinfo *);
85 static struct modctl *allocate_modp(const char *, const char *);
87 static int mod_load(struct modctl *, int);
88 static void mod_unload(struct modctl *);
89 static int modinstall(struct modctl *);
90 static int moduninstall(struct modctl *);
92 static struct modctl *mod_hold_by_name_common(struct modctl *, const char *);
93 static struct modctl *mod_hold_next_by_id(modid_t);
94 static struct modctl *mod_hold_loaded_mod(struct modctl *, char *, int *);
95 static struct modctl *mod_hold_installed_mod(char *, int, int, int *);
97 static void mod_release(struct modctl *);
98 static void mod_make_requisite(struct modctl *, struct modctl *);
99 static int mod_install_requisites(struct modctl *);
101 static struct modctl *mod_hold_by_name_requisite(struct modctl *, char *);
109 struct modctl *mp;
355 struct modctl *modp;
2362 modctl(int cmd, uintptr_t a1, uintptr_t a2, uintptr_t a3, uintptr_t a4,
2652 modrload(const char *subdir, const char *filename, struct modctl **rmodp)
2654 struct modctl *modp;
2787 struct modctl *modp;
2822 modunrload(modid_t id, struct modctl **rmodp, int unload)
2824 struct modctl *modp;
2879 struct modctl *modp;
2944 struct modctl *mp;
3056 struct modctl *mp = stub->mods_modinfo->mp;
3072 static struct modctl *
3073 mod_hold_loaded_mod(struct modctl *dep, char *filename, int *status)
3075 struct modctl *modp;
3108 static struct modctl *
3111 struct modctl *modp;
3171 struct modctl *
3174 struct modctl *mp;
3211 mod_circdep(struct modctl *modp)
3213 struct modctl *rmod;
3239 mod_getinfo(struct modctl *modp, struct modinfo *modinfop)
3270 modadd(struct modctl *mp)
3282 static struct modctl *
3285 struct modctl *mp;
3323 struct modctl *modp;
3389 mod_load(struct modctl *mp, int usepath)
3477 struct modctl *dmp = mod_hold_by_name("dtrace");
3503 mod_unload(struct modctl *mp)
3546 * mark module as unloaded before the modctl structure is freed.
3547 * This is required not to reuse the modctl structure before
3574 struct modctl *dmp = mod_hold_by_name("dtrace");
3584 modinstall(struct modctl *mp)
3688 moduninstall(struct modctl *mp)
3804 struct modctl *mp;
3974 mod_hold_by_modctl(struct modctl *mp, int f)
3992 * Nevertheless, modctl structure is still in linked list
3998 * DON'T free modctl structure, it will be very very
4017 static struct modctl *
4018 mod_hold_by_name_common(struct modctl *dep, const char *filename)
4021 struct modctl *mp;
4094 static struct modctl *
4095 mod_hold_by_name_requisite(struct modctl *dep, char *filename)
4100 struct modctl *
4106 struct modctl *
4109 struct modctl *mp;
4130 static struct modctl *
4133 struct modctl *mp;
4159 mod_release(struct modctl *mp)
4173 mod_release_mod(struct modctl *mp)
4186 struct modctl *mp;
4211 struct modctl *mp;
4240 mod_make_requisite(struct modctl *dependent, struct modctl *on_mod)
4286 mod_release_requisites(struct modctl *modp)
4290 struct modctl *req;
4338 struct modctl *mp = mod_garbage->modl_modp;
4369 struct modctl *
4370 mod_load_requisite(struct modctl *dep, char *on)
4372 struct modctl *on_mod;
4385 mod_install_requisites(struct modctl *modp)
4388 struct modctl *req;
4733 struct modctl *hmodp = NULL;
4777 struct modctl *hmodp = (struct modctl *)h;
4808 struct modctl *hmodp = (struct modctl *)h;
4809 struct modctl *modp = NULL;