Re: [PATCH]: Factor out PTY index allocation

From: H. Peter Anvin
Date: Thu Apr 17 2008 - 12:10:43 EST


Serge E. Hallyn wrote:
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.


Acked-by: H. Peter Anvin <hpa@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/