Quoting sukadev@xxxxxxxxxx (sukadev@xxxxxxxxxx):We noticed this while working on pts namespaces and believe this might
be an useful change even as we rework our pts/device namespace approach.
---
From: Sukadev Bhattiprolu <sukadev@xxxxxxxxxx>
Subject: [PATCH]: Factor out PTY index allocation
Factor out the code used to allocate/free a pts index into new interfaces,
devpts_new_index() and devpts_kill_index(). This localizes the external
data structures used in managing the pts indices.
Signed-off-by: Sukadev Bhattiprolu <sukadev@xxxxxxxxxx>
Signed-off-by: Serge Hallyn<serue@xxxxxxxxxx>
Signed-off-by: Matt Helsley<matthltc@xxxxxxxxxx>
No traces of devpts namespaces here, so I assume this should be
non-offensive and fine for inclusion.