UNCLASSIFIED
Hi
I've got some questions on the zero copy functionality within rcc
workers:
The only example for zero copy workers seems to be in
components/testzc.rcc/zcworkers.c.
In the code fragment below, what's the meaning of the ordinal 0x54?
Is this worker a working example or is there another example of zero
copy within an RCC worker ?
"
runc=1;
switch( runc ) {
// Send input buffer to output port
case 0:
{
this_->container.send( out, &in->current, 0x54, len );
}
break;
....
return RCC_OK
"
Also, when using the zero copy functionality within rcc workers with
multiple input buffers:
A worker has multiple input buffers and a single output buffer. How does
the input port know when the worker has finished processing the input
buffer?
(The multiple input buffers is obviously to allow the worker to access
multiple input buffers at a time). I assume the sequence to hold
multiple input buffers and then do a zero copy of one of them to the
output port is something like:
container->take(in, NULL, &state->buffers[cur]);
container->send(out, &(state->buffers[prev]),
state->buffer_operation[prev], state->buffer_length[prev]);
cont->release(&state->buffers[prev]);
Is this correct?
Cheers,
Josh
IMPORTANT: This email remains the property of the Department of Defence
and is subject to the jurisdiction of section 70 of the Crimes Act 1914.
If you have received this email in error, you are requested to contact
the sender and delete the email.
_______________________________________________
opencpi_dev mailing list
[email protected]
http://lists.opencpi.org/listinfo.cgi/opencpi_dev-opencpi.org