Re: Passing a char** to a Kext from user mode
Re: Passing a char** to a Kext from user mode
- Subject: Re: Passing a char** to a Kext from user mode
- From: Krishna Monian <email@hidden>
- Date: Fri, 2 Jul 2004 11:38:58 -0700 (PDT)
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 <email@hidden> 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 | 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.