linux/tools/lib/python
Christian Brauner fd0349aadb
pid: add helpers to operate on a struct pid array
We're about to extend af_unix sockets and coredump code with the ability
to hand out thread-specific pidfds. Add a few simple helpers that allow
to operate on multiple struct pids up to PIDTYPE_MAX with automatic
bounds checking.

Reviewed-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@futurfusion.io>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Signed-off-by: Andrew Halaney <andrew@amutable.com>
Link: https://patch.msgid.link/20261005-work-unix-passpidfd-v4-1-350183b6e02a@amutable.com
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
2026-10-12 10:58:20 +02:00
..
abi docs: python: abi_regex: convert adjacent index placeholders 2026-08-11 10:36:28 -06:00
feat docs: parse_features: make documentation more consistent 2026-01-23 11:37:39 -07:00
kdoc pid: add helpers to operate on a struct pid array 2026-10-12 10:58:20 +02:00
__init__.py
jobserver.py jobserver: Fix typo in docstring 2026-03-17 08:43:39 -06:00
unittest_helper.py tools: unittest_helper: add a quiet mode 2026-03-30 10:54:13 -06:00