Skip to content

Add new system call for non-destructive peek and inspection to posix ipc mqueue

Mathura_Kumar criu 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 8 repliesIn review
  2. v2 posting 2/24 patches 2 repliesSuperseded
  3. v2 posting 1/24 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches0 repliesSuperseded

Changes in v3 from the cover letter

- bitmask flag is added and check for valid operation
- userspace struct argument size is added for extensibility
- new test is added
- documentation is updated approximately
- increased the total system call count in performance tool as well
- v2 Link: https://lore.kernel.org/linux-arch/[email protected]/T/#t

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5IPC: Added New system call do_mq_timedreceive2() for non-destructive peek on posix mqueueinclude/linux/compat.h include/linux/syscalls.h include/uapi/asm-generic/unistd.h +6 more+231 -423 replies
2/5IPC: Added system call number in all most common arch.arch/alpha/kernel/syscalls/syscall.tbl arch/arm/tools/syscall.tbl arch/arm64/tools/syscall_32.tbl +14 more+17 -00 replies
3/5IPC: Prepared Documentation and testDocumentation/userspace-api/index.rst Documentation/userspace-api/ipc.rst tools/testing/selftests/ipc/.gitignore +2 more+1017 -10 replies
4/5IPC:Added entry in performance tools for new system calltools/include/uapi/asm-generic/unistd.h tools/perf/arch/alpha/entry/syscalls/syscall.tbl tools/perf/arch/arm/entry/syscalls/syscall.tbl +11 more+18 -10 replies
5/5Added bitmask flag and user struct argument size as input for extensibilityDocumentation/userspace-api/ipc.rst include/linux/compat.h include/linux/syscalls.h +3 more+163 -1040 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/5] Add new system call for non-destructive peek and inspection to posix ipc mqueue

Patch series overview:

1. Add New system call do_mq_timedreceive2() and handler implementation
2. Add system call number in all most common arch.
3. Prepared Documentation and test
4. Add entry in performance tools all most common file
5. Add bitmask flag and user struct size as input for extensibility

change since v2:
- bitmask flag is added and check for valid operation
- userspace struct argument size is added for extensibility
- new test is added
- documentation is updated approximately
- increased the total system call count in performance tool as well
- v2 Link: https://lore.kernel.org/linux-arch/[email protected]/T/#t

Thanks for reviewing.

 Documentation/userspace-api/index.rst         |   1 +
 Documentation/userspace-api/ipc.rst           | 228 +++++
 arch/alpha/kernel/syscalls/syscall.tbl        |   1 +
 arch/arm/tools/syscall.tbl                    |   1 +
 arch/arm64/tools/syscall_32.tbl               |   1 +
 arch/m68k/kernel/syscalls/syscall.tbl         |   1 +
 arch/microblaze/kernel/syscalls/syscall.tbl   |   1 +
 arch/mips/kernel/syscalls/syscall_n32.tbl     |   1 +
 arch/mips/kernel/syscalls/syscall_n64.tbl     |   1 +
 arch/mips/kernel/syscalls/syscall_o32.tbl     |   1 +
 arch/parisc/kernel/syscalls/syscall.tbl       |   1 +
 arch/powerpc/kernel/syscalls/syscall.tbl      |   1 +
 arch/s390/kernel/syscalls/syscall.tbl         |   1 +
 arch/sh/kernel/syscalls/syscall.tbl           |   1 +
 arch/sparc/kernel/syscalls/syscall.tbl        |   1 +
 arch/x86/entry/syscalls/syscall_32.tbl        |   1 +
 arch/x86/entry/syscalls/syscall_64.tbl        |   1 +
 arch/xtensa/kernel/syscalls/syscall.tbl       |   1 +
 include/linux/compat.h                        |   6 +-
 include/linux/syscalls.h                      |   6 +
 include/uapi/asm-generic/unistd.h             |   7 +-
 include/uapi/linux/mqueue.h                   |  14 +-
 ipc/mqueue.c                                  | 211 ++++-
 ipc/msg.c                                     |   2 +-
 ipc/msgutil.c                                 |  48 +-
 ipc/util.h                                    |   3 +-
 kernel/sys_ni.c                               |   3 +
 scripts/syscall.tbl                           |   1 +
 tools/include/uapi/asm-generic/unistd.h       |   6 +-
 .../arch/alpha/entry/syscalls/syscall.tbl     |   1 +
 .../perf/arch/arm/entry/syscalls/syscall.tbl  |   1 +
 .../arch/arm64/entry/syscalls/syscall_32.tbl  |   1 +
 .../arch/mips/entry/syscalls/syscall_n64.tbl  |   1 +
 .../arch/parisc/entry/syscalls/syscall.tbl    |   1 +
 .../arch/powerpc/entry/syscalls/syscall.tbl   |   1 +
 .../perf/arch/s390/entry/syscalls/syscall.tbl |   1 +
 tools/perf/arch/sh/entry/syscalls/syscall.tbl |   1 +
 .../arch/sparc/entry/syscalls/syscall.tbl     |   1 +
 .../arch/x86/entry/syscalls/syscall_32.tbl    |   1 +
 .../arch/x86/entry/syscalls/syscall_64.tbl    |   1 +
 .../arch/xtensa/entry/syscalls/syscall.tbl    |   1 +
 tools/scripts/syscall.tbl                     |   1 +
 tools/testing/selftests/ipc/.gitignore        |   1 +
 tools/testing/selftests/ipc/Makefile          |   9 +-
 tools/testing/selftests/ipc/mq_peek.c         | 813 ++++++++++++++++++
 45 files changed, 1343 insertions(+), 45 deletions(-)
 create mode 100644 Documentation/userspace-api/ipc.rst
 create mode 100644 tools/testing/selftests/ipc/mq_peek.c
Signature · 1 line
2.43.0