Skip to content

Do allow buffers need to be static and what can the allow numbers be? #452

Answered by jrvanwhy
potto216 asked this question in Q&A
Discussion options

You must be logged in to vote

The capsule documentation talks about buffers needing a static lifetime.

That documentation is about buffers within the kernel, not buffers shared between userspace processes and the kernel.

But the console capsule doesn't state that as a requirement and the console code in libtock-rs/apis/console/src/lib.rs doesn't appear to require that. Is there any requirement that the lifetime is static?

There is no requirement that Allow buffers be 'static.

My understanding of the allow numbers is that

  1. They are independent per capsule.
  2. In a capsule the read only numbers are an independent set from the read write numbers.

That understanding is correct.

When I look at the documentation for the

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@hudson-ayers
Comment options

@potto216
Comment options

Answer selected by potto216
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants