kreate kmod kall-in kpi?
kreate kmod kall-in kpi?
- Subject: kreate kmod kall-in kpi?
- From: David Krauss <email@hidden>
- Date: Mon, 20 Jan 2003 20:13:32 -0800 (PST)
In mach/host_priv.h, there's a really neat-looking
function:
kern_return_t kmod_control
(
host_priv_t host_priv,
kmod_t module,
kmod_control_flavor_t flavor,
kmod_args_t *data,
mach_msg_type_number_t *dataCnt
);
It looks like it'll call a function "flavor" in a kmod
"module" with parameters "data"/"dataCnt". I don't see
where info gets returned (mebbe ptr/data passed back
is changed?), but I don't need anything more than a
return_t anwyay.
Does this do what it looks like? Is it the best way of
executing some arbitrary code in the kernel?
So, how do I associate a function in my kmod wth a
control_flavor?
Also, what's the preferred method of loading a kmod
from application code? Should I read it into the app's
address space & call kmod_create() or run kmodload? Or
mebbe elsehow?
Is there documentation to the kmod interface? Was it
interited from somewhere in particular or is it new in
Darwin?
- TIA,
David "Potatoswatter" Krauss
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.