-
The capsule documentation talks about buffers needing a static lifetime. But the console capsule doesn't state that as a requirement and the console code in My understanding of the allow numbers is that
When I look at the documentation for the console capsule this is the rule they follow. Although they don't start at zero. But when I look at the documentation for the udp capsule the read only and read write seem to be interleaved with one set of numbers. What is the correct way to look at this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
That documentation is about buffers within the kernel, not buffers shared between userspace processes and the kernel.
There is no requirement that Allow buffers be
That understanding is correct.
I believe this is a case of outdated documentation. In Tock 1.0 there was only one Allow system call, so read-only and read-write buffers had to have distinct buffer numbers. In Tock 2.0, they are different system calls, with independent numbering. |
Beta Was this translation helpful? Give feedback.
That documentation is about buffers within the kernel, not buffers shared between userspace processes and the kernel.
There is no requirement that Allow buffers be
'static
.That understanding is correct.