From b26dd6d9b78b2703a8a726376e6935011657123a Mon Sep 17 00:00:00 2001 From: Jing Chen Date: Wed, 2 Dec 2020 00:11:17 -0800 Subject: Add /proc/sys/kernel/sem. PiperOrigin-RevId: 345178956 --- pkg/abi/linux/sem.go | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'pkg/abi') diff --git a/pkg/abi/linux/sem.go b/pkg/abi/linux/sem.go index 1b2f76c0b..167d2ff74 100644 --- a/pkg/abi/linux/sem.go +++ b/pkg/abi/linux/sem.go @@ -32,6 +32,17 @@ const ( SEM_STAT_ANY = 20 ) +// Information about system-wide sempahore limits and parameters. +// +// Source: include/uapi/linux/sem.h +const ( + SEMMNI = 32000 + SEMMSL = 32000 + SEMMNS = SEMMNI * SEMMSL + SEMOPM = 500 + SEMVMX = 32767 +) + const SEM_UNDO = 0x1000 // Sembuf is equivalent to struct sembuf. -- cgit v1.2.3