-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Do we have a story for how to deal with stacks that need their sockets pinned?
For example, RIOT's sock_udp_t needs to stay in a place in memory from the time it is connected or bound -- aka be pinned.
The options I see are:
- Making all functions that now take
&mut socket
take aPin<&mut socket>
-- a breaking API change that'd require all general applications to pin their sockets (general applications that can't would require ``ST: UdpStack, ST::Socket: Unpin`). - Using workarounds like currently in riot-wrappers where Stack upon creation has some pinned memory inside which the immovable sockets are created, and where the exposed sockets are just pointers to these.
Is 1. an option on the long run?
Metadata
Metadata
Assignees
Labels
No labels