Re: Using ctl_enqueuembuf
Re: Using ctl_enqueuembuf
- Subject: Re: Using ctl_enqueuembuf
- From: Stephane Sudre <email@hidden>
- Date: Tue, 19 Apr 2005 17:52:20 +0200
On 19 avr. 05, at 17:17, Carl Smith wrote:
I am using the function ctl_enqueuembuf to pass data up to my userland
process from my NKE. My problem lies in that I am passing a structure
that has some pointers to buffers within this structure and these
buffers are always showing empty/zeros when I receive them on the
userland side. I am using the example from TCPlogger, in how TCPlogger
is passing a structure up to it's user land, but for some reason for
me it is not working.
I get all the correct values for ints/booleans and etc. that are in my
structure but the _MALLOCed buffers, from the NKE are empty. I suspect
it has to do something with the way I filling out the mbuf because
like I said I can receive the struct on the userland side, the
pointers seem good to the buffers with in the structure but these
buffers are just empty, zeroed out.
Maybe if someone can take a look at the code below they have some
suggestions or see something I do not.
You will need to serialize your struct.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden