Skip to content

posix timers: Extend kernel API to report more info about timers (v3)

Pavel Emelyanov linux-api lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3posix timers: Allocate timer id per process (v2)include/linux/posix-timers.h include/linux/sched.h kernel/posix-timers.c+72 -380 replies
2/3posix-timers: Introduce /proc/<pid>/timers filefs/proc/base.c+83 -00 replies
3/3posix-timers: Show sigevent info in proc filefs/proc/base.c+17 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] posix timers: Extend kernel API to report more info about timers (v3)

Hi.

Currently kernel doesn't provide any API for getting information about what timers are currently created by process and in which state they are. Also, the way timer IDs are generated makes it impossible to create a timer with any desired ID. Both facilities are very very tempting by the checkpoint-restore project.

That said, this series fixes posix timers API in this way:

1. it makes timers IDs generation per-signal_struct to allow for recreation of a timer with desired ID;
2. it adds per-task proc file where all timers created by it are listed.

This v3 series is ported on v3.9-rc2 and patches' changelogs are fixed according to Thomas' feedback to contain info why the change is required.

Thanks,
Pavel