Generation of network devices #615

Open
opened 2026-07-29 09:19:23 +00:00 by hidnplayr · 0 comments
Owner

Network devices are identified by means of a slot index to the user level.
Adding and removing devices at runtime means we can no longer be confident that the device x from an hour ago is the same as device x now.
To solve this, we can add a global network devices generation counter that is incremented on each insertion/removal.
Additionally, we might expose the birth generation numbers of each device.
Also, the 'number of active devices' should be replaced with 'number of highest allocated slot', similar to other API functions, to cover the fact that suddenly we can have holes.

Network devices are identified by means of a slot index to the user level. Adding and removing devices at runtime means we can no longer be confident that the device x from an hour ago is the same as device x now. To solve this, we can add a global network devices generation counter that is incremented on each insertion/removal. Additionally, we might expose the birth generation numbers of each device. Also, the 'number of active devices' should be replaced with 'number of highest allocated slot', similar to other API functions, to cover the fact that suddenly we can have holes.
hidnplayr self-assigned this 2026-07-29 09:20:39 +00:00
hidnplayr added this to the Network stack project 2026-08-02 15:53:14 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KolibriOS/kolibrios#615