namespacefs: Add generic methods for idr printing

'idr' provides 'id to pointer' translation service avoiding the need of
fixed sized tables. Here we add generic helper methods for printing the
idr's content into synthetic files from sequences of records (seq_file).
The new definitions will be used by 'namespacefs' when printing the PIDs
of the tasks in each namespace.

Signed-off-by: Yordan Karadzhov (VMware) <>
2 files changed