I am basically writing a IOService which reroutes system calls so that I can log file accesses. I am trying to copy data from the user space to kernel space. I have got around this by replacing the char** by char*[] and then using copyinstr() to copy the strings. Thanks --- Godfrey van der Linden <gvdl@apple.com> wrote:
The answer for this depends totally on what space
you are operating
in:- VFS, NKE, IOKit or other? Also what are you
trying to copy from
the kernel's address space to user land? How much
data are you going
to move?
Godfrey
On Jul 1, , at 16:04, Krishna Monian wrote:
Hi,
I am trying to write a kernel extension in which I
have to pass a char** to it from a user mode
application.
Currently I have tried passing the pointer as a
scalar
and as a struct(wrapped in a struct) to the kext.
However this results in some weird behavior.
What is the right way to pass such information to
the
kext?
Thanks
__________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.